summaryrefslogtreecommitdiff
path: root/basctl/source/basicide/objdlg.cxx
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2003-04-24 13:05:54 +0000
committerVladimir Glazounov <vg@openoffice.org>2003-04-24 13:05:54 +0000
commitc8e471a1df88e21dfb9a16c162f602194bb9f064 (patch)
tree60742be3195b672a2ecb9823d303e1105ea454d3 /basctl/source/basicide/objdlg.cxx
parentece1ee95f729878707d42c2eccf425161828b9e4 (diff)
INTEGRATION: CWS uno3 (1.11.58); FILE MERGED
2003/04/16 14:55:15 tbe 1.11.58.1: #108974# Office crashes when creating new Basic library in backing component
Diffstat (limited to 'basctl/source/basicide/objdlg.cxx')
-rw-r--r--basctl/source/basicide/objdlg.cxx18
1 files changed, 13 insertions, 5 deletions
diff --git a/basctl/source/basicide/objdlg.cxx b/basctl/source/basicide/objdlg.cxx
index 72e9aa578d75..3454f408812c 100644
--- a/basctl/source/basicide/objdlg.cxx
+++ b/basctl/source/basicide/objdlg.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: objdlg.cxx,v $
*
- * $Revision: 1.11 $
+ * $Revision: 1.12 $
*
- * last change: $Author: sb $ $Date: 2002-07-04 13:33:07 $
+ * last change: $Author: vg $ $Date: 2003-04-24 14:05:54 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -59,6 +59,9 @@
*
************************************************************************/
+#ifndef _SFX_IPFRM_HXX
+#include <sfx2/ipfrm.hxx>
+#endif
#include <ide_pch.hxx>
@@ -266,12 +269,17 @@ IMPL_LINK( ObjectCatalog, ToolBoxHdl, ToolBox*, pToolBox )
case TBITEM_SHOW:
{
SfxViewFrame* pViewFrame = SfxViewFrame::Current();
- DBG_ASSERT( pViewFrame != NULL, "No current view frame!" );
- SfxDispatcher* pDispatcher = pViewFrame ? pViewFrame->GetDispatcher() : NULL;
- if( pDispatcher )
+ SfxDispatcher* pDispatcher = ( pViewFrame && !pViewFrame->ISA( SfxInPlaceFrame ) ) ? pViewFrame->GetDispatcher() : NULL;
+ if ( pDispatcher )
{
pDispatcher->Execute( SID_BASICIDE_APPEAR, SFX_CALLMODE_SYNCHRON );
}
+ else
+ {
+ SfxAllItemSet aArgs( SFX_APP()->GetPool() );
+ SfxRequest aRequest( SID_BASICIDE_APPEAR, SFX_CALLMODE_SYNCHRON, aArgs );
+ SFX_APP()->ExecuteSlot( aRequest );
+ }
SvLBoxEntry* pCurEntry = aMacroTreeList.GetCurEntry();
DBG_ASSERT( pCurEntry, "Entry?!" );
SbxItem aSbxItem = aMacroTreeList.GetSbxItem( pCurEntry );