diff options
author | npower Developer <npower@openoffice.org> | 2010-05-05 11:41:41 +0100 |
---|---|---|
committer | npower Developer <npower@openoffice.org> | 2010-05-05 11:41:41 +0100 |
commit | 442f8716115ad20f75aa3d456727fb51f790d31c (patch) | |
tree | e1ef155651a3c0671fac112e3e00fe28898eeb8b /basctl | |
parent | c6bb7651534f61d513e2947af29e66cd12a88012 (diff) |
fix for insert
Diffstat (limited to 'basctl')
-rw-r--r-- | basctl/source/basicide/basides2.cxx | 11 |
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 ); |