summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornpower Developer <npower@openoffice.org>2010-05-05 11:41:41 +0100
committernpower Developer <npower@openoffice.org>2010-05-05 11:41:41 +0100
commit442f8716115ad20f75aa3d456727fb51f790d31c (patch)
treee1ef155651a3c0671fac112e3e00fe28898eeb8b
parentc6bb7651534f61d513e2947af29e66cd12a88012 (diff)
fix for insert
-rw-r--r--basctl/source/basicide/basides2.cxx11
1 files changed, 7 insertions, 4 deletions
diff --git a/basctl/source/basicide/basides2.cxx b/basctl/source/basicide/basides2.cxx
index 831233e78068..bef969db9266 100644
--- a/basctl/source/basicide/basides2.cxx
+++ b/basctl/source/basicide/basides2.cxx
@@ -260,12 +260,15 @@ ModulWindow* BasicIDEShell::CreateBasWin( const ScriptDocument& rDocument, const
{
pWin = FindBasWin( rDocument, aLibName, aModName, FALSE, TRUE );
if( !pWin )
- { // new module window
- pWin = new ModulWindow( pModulLayout, rDocument, aLibName, aModName, aModule );
- nKey = InsertWindowInTable( pWin );
+ {
+ // new module window
+ pWin = new ModulWindow( pModulLayout, rDocument, aLibName, aModName, aModule );
+ nKey = InsertWindowInTable( pWin );
+ }
+ else // we've gotten called recursively ( via listener from createModule above ), get outta here
+ return pWin;
}
}
- }
else
{
pWin->SetStatus( pWin->GetStatus() & ~BASWIN_SUSPENDED );