Kaydet (Commit) 512f85f0 authored tarafından Bjoern Michaelsen's avatar Bjoern Michaelsen

do not use manual iteration

Change-Id: I50c4a9c7e10ddf47a280b2b5e08051ce480985cf
üst 16e524d5
......@@ -246,16 +246,13 @@ void SwViewShell::ImplEndAction( const bool bIdleEnd )
//will this put the EndAction of the last shell in the sequence?
SwViewShell::mbLstAct = true;
SwViewShell *pSh = this->GetNext();
while ( pSh != this )
for(SwViewShell& rShell : GetRingContainer())
{
if ( pSh->ActionPend() )
if(&rShell != this && rShell.ActionPend())
{
SwViewShell::mbLstAct = false;
pSh = this;
break;
}
else
pSh = pSh->GetNext();
}
const bool bIsShellForCheckViewLayout = ( this == GetLayout()->GetCurrShell() );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment