Kaydet (Commit) 16e524d5 authored tarafından Bjoern Michaelsen's avatar Bjoern Michaelsen

do not use manual iteration

Change-Id: Id2aaa4171680d8d002d4b2aebf6281ca817c74d9
üst 35f70c86
......@@ -415,7 +415,17 @@ void SwRootFrm::DeRegisterShell( SwViewShell *pSh )
{
// Activate some shell if possible
if ( pCurrShell == pSh )
pCurrShell = pSh->GetNext() != pSh ? pSh->GetNext() : nullptr;
{
pCurrShell = nullptr;
for(SwViewShell& rShell : pSh->GetRingContainer())
{
if(&rShell != pSh)
{
pCurrShell = &rShell;
break;
}
}
}
// Doesn't matter anymore
if ( pWaitingCurrShell == pSh )
......
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