diff options
Diffstat (limited to 'sw/source/filter/html/swhtml.cxx')
-rw-r--r-- | sw/source/filter/html/swhtml.cxx | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/sw/source/filter/html/swhtml.cxx b/sw/source/filter/html/swhtml.cxx index f984100ab9a4..f401e7ac2451 100644 --- a/sw/source/filter/html/swhtml.cxx +++ b/sw/source/filter/html/swhtml.cxx @@ -4722,13 +4722,9 @@ void SwHTMLParser::SetTextCollAttrs( HTMLAttrContext *pContext ) } // remove previous hard attribution of paragraph - if( !m_aParaAttrs.empty() ) - { - for( auto pParaAttr : m_aParaAttrs ) - pParaAttr->Invalidate(); - - m_aParaAttrs.clear(); - } + for( auto pParaAttr : m_aParaAttrs ) + pParaAttr->Invalidate(); + m_aParaAttrs.clear(); // set the style m_xDoc->SetTextFormatColl( *m_pPam, pCollToSet ); |