summaryrefslogtreecommitdiff
path: root/basctl/source/basicide/basides2.cxx
diff options
context:
space:
mode:
authornpower Developer <npower@openoffice.org>2010-03-03 16:12:54 +0000
committernpower Developer <npower@openoffice.org>2010-03-03 16:12:54 +0000
commitb38c23a63a189072a6275bb791fcfa55edfdc2fd (patch)
treed5771e8896e37efef840c7c765f10747c1b571f8 /basctl/source/basicide/basides2.cxx
parentb4cfc7121b263041c586fe3c3ed894f3a5494e7c (diff)
npower13_objectmodule: clean up IDE changes
Diffstat (limited to 'basctl/source/basicide/basides2.cxx')
-rw-r--r--basctl/source/basicide/basides2.cxx19
1 files changed, 8 insertions, 11 deletions
diff --git a/basctl/source/basicide/basides2.cxx b/basctl/source/basicide/basides2.cxx
index 8da483e209d4..c6f6a77a9446 100644
--- a/basctl/source/basicide/basides2.cxx
+++ b/basctl/source/basicide/basides2.cxx
@@ -301,21 +301,18 @@ ModulWindow* BasicIDEShell::CreateBasWin( const ScriptDocument& rDocument, const
}
DBG_ASSERT( nKey, "CreateBasWin: Kein Key- Fenster nicht gefunden!" );
}
- if( nKey )
+ if( nKey && xLib.is() && rDocument.isInVBAMode() )
{
- if( xLib.is() )
+ // display a nice friendly name in the ObjectModule tab,
+ // combining the objectname and module name, e.g. Sheet1 ( Financials )
+ String sObjName;
+ lcl_getObjectName( xLib, rModName, sObjName );
+ if( sObjName.Len() )
{
- // display a nice friendly name in the ObjectModule tab,
- // combining the objectname and module name, e.g. Sheet1 ( Financials )
- String sObjName;
- lcl_getObjectName( xLib, rModName, sObjName );
- if( sObjName.Len() )
- {
- aModName.AppendAscii(" (").Append(sObjName).AppendAscii(")");
- }
+ aModName.AppendAscii(" (").Append(sObjName).AppendAscii(")");
}
- pTabBar->InsertPage( (USHORT)nKey, aModName );
}
+ pTabBar->InsertPage( (USHORT)nKey, aModName );
pTabBar->Sort();
pWin->GrabScrollBars( &aHScrollBar, &aVScrollBar );
if ( !pCurWin )