diff options
Diffstat (limited to 'sw/source/core/crsr/findattr.cxx')
-rw-r--r-- | sw/source/core/crsr/findattr.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sw/source/core/crsr/findattr.cxx b/sw/source/core/crsr/findattr.cxx index c115c9b359b9..47a2a1e04266 100644 --- a/sw/source/core/crsr/findattr.cxx +++ b/sw/source/core/crsr/findattr.cxx @@ -990,9 +990,8 @@ bool FindAttrImpl(SwPaM & rSearchPam, if( !pNode->HasSwAttrSet() ) { SwFormat* pTmpFormat = pNode->GetFormatColl(); - if( aFormatArr.find( pTmpFormat ) != aFormatArr.end() ) + if( !aFormatArr.insert( pTmpFormat ).second ) continue; // collection was requested earlier - aFormatArr.insert( pTmpFormat ); } if( SfxItemState::SET == pNode->GetSwAttrSet().GetItemState( nWhich, @@ -1165,9 +1164,8 @@ static bool FindAttrsImpl(SwPaM & rSearchPam, if (!rPropsNode.HasSwAttrSet()) { SwFormat* pTmpFormat = rPropsNode.GetFormatColl(); - if( aFormatArr.find( pTmpFormat ) != aFormatArr.end() ) + if( !aFormatArr.insert( pTmpFormat ).second ) continue; // collection was requested earlier - aFormatArr.insert( pTmpFormat ); } if (lcl_Search(rPropsNode, aOtherSet, bNoColls)) |