summaryrefslogtreecommitdiff
path: root/sw/source/core/crsr/findattr.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/crsr/findattr.cxx')
-rw-r--r--sw/source/core/crsr/findattr.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/crsr/findattr.cxx b/sw/source/core/crsr/findattr.cxx
index ba5e6ac56d08..3f695280f814 100644
--- a/sw/source/core/crsr/findattr.cxx
+++ b/sw/source/core/crsr/findattr.cxx
@@ -346,7 +346,7 @@ bool SwAttrCheckArr::SetAttrFwd( const SwTextAttr& rAttr )
pIter.reset(new SfxWhichIter( *pSet ));
nWhch = pIter->FirstWhich();
while( nWhch &&
- SfxItemState::SET != pSet->GetItemState( nWhch, true, &pTmpItem ) )
+ SfxItemState::SET != pIter->GetItemState( true, &pTmpItem ) )
nWhch = pIter->NextWhich();
if( !nWhch )
pTmpItem = nullptr;
@@ -506,7 +506,7 @@ bool SwAttrCheckArr::SetAttrBwd( const SwTextAttr& rAttr )
pIter.reset( new SfxWhichIter( *pSet ) );
nWhch = pIter->FirstWhich();
while( nWhch &&
- SfxItemState::SET != pSet->GetItemState( nWhch, true, &pTmpItem ) )
+ SfxItemState::SET != pIter->GetItemState( true, &pTmpItem ) )
nWhch = pIter->NextWhich();
if( !nWhch )
pTmpItem = nullptr;