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 | 3ef7b4affccb7fdd28aa43c965fecf63b4da00af (patch) | |
tree | a411f9c3f09f7d7af9945620742a555b07d73fab /basctl/source/basicide/basides2.cxx | |
parent | 798fb7324ef4ed26cbb51c978d8e5c661de92ee8 (diff) |
fix for insert
Diffstat (limited to 'basctl/source/basicide/basides2.cxx')
-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 a51ecf0a8..393dd4e02 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 ); |