diff options
author | Michael Meeks <michael.meeks@suse.com> | 2012-07-03 13:09:28 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2012-07-03 13:10:11 +0100 |
commit | 3dc420a6a3e2a47aa80f382cdd0e9c66b2fb6630 (patch) | |
tree | bb6010f82cc6bdc0074b67b5916f769b3aa99eaa /basctl | |
parent | ec54c0c45f34ba3ec2c156311384a1c31f62a0df (diff) |
fdo#51577 - fix incremental search / buffer switching hang/crash
Diffstat (limited to 'basctl')
-rw-r--r-- | basctl/source/basicide/basides1.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/basctl/source/basicide/basides1.cxx b/basctl/source/basicide/basides1.cxx index b0f886531897..d11ece3767c4 100644 --- a/basctl/source/basicide/basides1.cxx +++ b/basctl/source/basicide/basides1.cxx @@ -227,9 +227,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; |