summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
Diffstat (limited to 'basctl')
-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 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;