diff options
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/core/doc/docfmt.cxx | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/sw/source/core/doc/docfmt.cxx b/sw/source/core/doc/docfmt.cxx index 83ba56a91948..f2e9b105e355 100644 --- a/sw/source/core/doc/docfmt.cxx +++ b/sw/source/core/doc/docfmt.cxx @@ -333,16 +333,13 @@ void SwDoc::ResetAttrs( const SwPaM &rRg, RES_TXTATR_INETFMT, RES_TXTATR_UNKNOWN_CONTAINER, RES_PARATR_BEGIN, RES_FRMATR_END - 1, RES_UNKNOWNATR_BEGIN, RES_UNKNOWNATR_END - 1>{}); - if( !rAttrs.empty() ) + for( std::set<sal_uInt16>::const_reverse_iterator it = rAttrs.rbegin(); it != rAttrs.rend(); ++it ) { - for( std::set<sal_uInt16>::const_reverse_iterator it = rAttrs.rbegin(); it != rAttrs.rend(); ++it ) - { - if( POOLATTR_END > *it ) - aDelSet.Put( *GetDfltAttr( *it )); - } - if( aDelSet.Count() ) - aPara.pDelSet = &aDelSet; + if( POOLATTR_END > *it ) + aDelSet.Put( *GetDfltAttr( *it )); } + if( aDelSet.Count() ) + aPara.pDelSet = &aDelSet; bool bAdd = true; SwNodeIndex aTmpStt( pStt->nNode ); |