Kaydet (Commit) 3dc420a6 authored tarafından Michael Meeks's avatar Michael Meeks

fdo#51577 - fix incremental search / buffer switching hang/crash

üst ec54c0c4
...@@ -227,9 +227,12 @@ void BasicIDEShell::ExecuteCurrent( SfxRequest& rReq ) ...@@ -227,9 +227,12 @@ void BasicIDEShell::ExecuteCurrent( SfxRequest& rReq )
} }
if ( pWin && ( pWin != pCurWin ) ) if ( pWin && ( pWin != pCurWin ) )
{ {
++it; if ( it != aIDEWindowTable.end() )
++it;
if ( it != aIDEWindowTable.end() ) if ( it != aIDEWindowTable.end() )
pWin = it->second; pWin = it->second;
else
pWin = 0;
} }
else else
pWin = 0; pWin = 0;
......
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