diff options
Diffstat (limited to 'sw/source/filter/writer/writer.cxx')
-rw-r--r-- | sw/source/filter/writer/writer.cxx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sw/source/filter/writer/writer.cxx b/sw/source/filter/writer/writer.cxx index fa56eb08f519..cd59f2f445e5 100644 --- a/sw/source/filter/writer/writer.cxx +++ b/sw/source/filter/writer/writer.cxx @@ -359,15 +359,18 @@ void Writer::PutNumFormatFontsInAttrPool() // it can be removed - it is already in the Pool SfxItemPool& rPool = m_pDoc->GetAttrPool(); const SwNumRuleTable& rListTable = m_pDoc->GetNumRuleTable(); - const SwNumRule* pRule; const SwNumFormat* pFormat; const vcl::Font* pFont; const vcl::Font* pDefFont = &numfunc::GetDefBulletFont(); bool bCheck = false; for( size_t nGet = rListTable.size(); nGet; ) - if( SwDoc::IsUsed( *(pRule = rListTable[ --nGet ] ))) + { + SwNumRule const*const pRule = rListTable[ --nGet ]; + if (m_pDoc->IsUsed(*pRule)) + { for( sal_uInt8 nLvl = 0; nLvl < MAXLEVEL; ++nLvl ) + { if( SVX_NUM_CHAR_SPECIAL == (pFormat = &pRule->Get( nLvl ))->GetNumberingType() || SVX_NUM_BITMAP == pFormat->GetNumberingType() ) { @@ -386,6 +389,9 @@ void Writer::PutNumFormatFontsInAttrPool() pFont->GetFamilyName(), pFont->GetStyleName(), pFont->GetPitch(), pFont->GetCharSet(), RES_CHRATR_FONT )); } + } + } + } } void Writer::PutEditEngFontsInAttrPool() |