summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
authorThomas Benisch <tbe@openoffice.org>2001-10-11 09:03:35 +0000
committerThomas Benisch <tbe@openoffice.org>2001-10-11 09:03:35 +0000
commit5b40a1f98575f1f1b24200384126d34588fb4090 (patch)
treecf82711272880812f94c2f158096e1509f12e437 /basctl
parent5f08c97979427ded3594d5a71fc32f6e7db832d2 (diff)
#92947# the select library is not displayed for editing but the first library
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/basicide/moduldl2.cxx17
1 files changed, 10 insertions, 7 deletions
diff --git a/basctl/source/basicide/moduldl2.cxx b/basctl/source/basicide/moduldl2.cxx
index f7cdb1190f3e..5158a3121a92 100644
--- a/basctl/source/basicide/moduldl2.cxx
+++ b/basctl/source/basicide/moduldl2.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: moduldl2.cxx,v $
*
- * $Revision: 1.19 $
+ * $Revision: 1.20 $
*
- * last change: $Author: tbe $ $Date: 2001-09-27 14:00:31 $
+ * last change: $Author: tbe $ $Date: 2001-10-11 10:03:35 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -256,10 +256,10 @@ IMPL_LINK( LibPage, ButtonHdl, Button *, pButton )
if ( pButton == &aEditButton )
{
//ActivateCurrentLibSettings();
- SfxViewFrame* pCurFrame = SfxViewFrame::Current();
- DBG_ASSERT( pCurFrame != NULL, "No current view frame!" );
- SfxDispatcher* pDispatcher = pCurFrame ? pCurFrame->GetDispatcher() : NULL;
- if( pDispatcher )
+ SfxViewFrame* pViewFrame = SfxViewFrame::Current();
+ DBG_ASSERT( pViewFrame != NULL, "No current view frame!" );
+ SfxDispatcher* pDispatcher = pViewFrame ? pViewFrame->GetDispatcher() : NULL;
+ if ( pDispatcher )
{
pDispatcher->Execute( SID_BASICIDE_APPEAR, SFX_CALLMODE_SYNCHRON );
}
@@ -267,7 +267,10 @@ IMPL_LINK( LibPage, ButtonHdl, Button *, pButton )
DBG_ASSERT( pCurEntry, "Entry?!" );
String aLib( CreateMgrAndLibStr( aCurBasMgr, aLibBox.GetEntryText( pCurEntry, 0 ) ) );
SfxStringItem aLibName( SID_BASICIDE_ARG_LIBNAME, aLib );
- if( pDispatcher )
+ BasicIDEShell* pIDEShell = IDE_DLL()->GetShell();
+ pViewFrame = pIDEShell ? pIDEShell->GetViewFrame() : NULL;
+ pDispatcher = pViewFrame ? pViewFrame->GetDispatcher() : NULL;
+ if ( pDispatcher )
{
pDispatcher->Execute( SID_BASICIDE_LIBSELECTED,
SFX_CALLMODE_ASYNCHRON, &aLibName, 0L );