Kaydet (Commit) 5a15ef3d authored tarafından Oliver-Rainer Wittmann's avatar Oliver-Rainer Wittmann

124106: correct handling of paragraph attributes, esp. whose which are providing…

124106: correct handling of paragraph attributes, esp. whose which are providing the default value explicitly
üst 6a1f3476
......@@ -1093,7 +1093,7 @@ StyleSheetPropertyMap::StyleSheetPropertyMap() :
mbCT_TblWidth_typeSet( false ),
mnListId( -1 ),
mnListLevel( -1 ),
mnOutlineLevel( -1 )
mnOutlineLevel( 0 )
{
}
/*-- 14.06.2007 13:57:43---------------------------------------------------
......
......@@ -496,7 +496,7 @@ public:
sal_Int16 GetOutlineLevel() const { return mnOutlineLevel; }
void SetOutlineLevel(sal_Int16 nLevel)
{
if ( nLevel < WW_OUTLINE_MAX )
if ( nLevel <= WW_OUTLINE_MAX )
mnOutlineLevel = nLevel;
}
......
......@@ -866,7 +866,7 @@ void StyleSheetTable::ApplyStyleSheets( FontTablePtr rFontTable )
aPropValues.realloc( aPropValues.getLength( ) + 1 );
beans::PropertyValue aLvlVal( rPropNameSupplier.GetName( PROP_OUTLINE_LEVEL ), 0,
uno::makeAny( sal_Int16( pStyleSheetProperties->GetOutlineLevel( ) + 1 ) ),
uno::makeAny( sal_Int16( pStyleSheetProperties->GetOutlineLevel( ) ) ),
beans::PropertyState_DIRECT_VALUE );
aPropValues[ aPropValues.getLength( ) - 1 ] = aLvlVal;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment