diff options
Diffstat (limited to 'sw/source/core/view/viewimp.cxx')
-rw-r--r-- | sw/source/core/view/viewimp.cxx | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/sw/source/core/view/viewimp.cxx b/sw/source/core/view/viewimp.cxx index 998a1a3fe61a..7355257a977d 100644 --- a/sw/source/core/view/viewimp.cxx +++ b/sw/source/core/view/viewimp.cxx @@ -328,14 +328,11 @@ void SwViewImp::InvalidateAccessibleEditableState( bool bAllShells, { if( bAllShells ) { - SwViewShell *pVSh = GetShell(); - SwViewShell *pTmp = pVSh; - do + for(SwViewShell& rTmp : GetShell()->GetRingContainer()) { - if( pTmp->Imp()->IsAccessible() ) - pTmp->Imp()->GetAccessibleMap().InvalidateStates( ACC_STATE_EDITABLE, pFrm ); - pTmp = static_cast<SwViewShell *>(pTmp->GetNext()); - } while ( pTmp != pVSh ); + if( rTmp.Imp()->IsAccessible() ) + rTmp.Imp()->GetAccessibleMap().InvalidateStates( ACC_STATE_EDITABLE, pFrm ); + } } else if( IsAccessible() ) { |