summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@suse.com>2012-07-03 13:09:28 +0100
committerMichael Meeks <michael.meeks@suse.com>2012-07-03 13:18:15 +0100
commit37c1c9c4ffff46264ba0f5a56ed11d24b9e0fabb (patch)
tree96deecfc950ed304444ca460ba5c0de2e6a9a858
parent053832f8dc453b408d33028e58b7357b29041ae3 (diff)
fdo#51577 - fix incremental search / buffer switching hang/crash
-rw-r--r--basctl/source/basicide/basides1.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/basctl/source/basicide/basides1.cxx b/basctl/source/basicide/basides1.cxx
index cb18b10968b1..24c7884a7535 100644
--- a/basctl/source/basicide/basides1.cxx
+++ b/basctl/source/basicide/basides1.cxx
@@ -231,9 +231,12 @@ void BasicIDEShell::ExecuteCurrent( SfxRequest& rReq )
}
if ( pWin && ( pWin != pCurWin ) )
{
- ++it;
+ if ( it != aIDEWindowTable.end() )
+ ++it;
if ( it != aIDEWindowTable.end() )
pWin = it->second;
+ else
+ pWin = 0;
}
else
pWin = 0;