summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
authorThomas Benisch <tbe@openoffice.org>2001-12-12 17:11:43 +0000
committerThomas Benisch <tbe@openoffice.org>2001-12-12 17:11:43 +0000
commit528c6f1e9496f53ff4191f39e7afa6b8856a47ba (patch)
treef2550a808fad8e646375571f8cb4fd5f85192191 /basctl
parente0ccd15ade45722fe04cef1259bb78479b29679d (diff)
#95520# Starting Basic Macro from another but the active document gives error message
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/basicide/basobj2.cxx12
1 files changed, 5 insertions, 7 deletions
diff --git a/basctl/source/basicide/basobj2.cxx b/basctl/source/basicide/basobj2.cxx
index 20fd764a1a4e..05c3caf877b8 100644
--- a/basctl/source/basicide/basobj2.cxx
+++ b/basctl/source/basicide/basobj2.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: basobj2.cxx,v $
*
- * $Revision: 1.18 $
+ * $Revision: 1.19 $
*
- * last change: $Author: tbe $ $Date: 2001-11-14 22:43:37 $
+ * last change: $Author: tbe $ $Date: 2001-12-12 18:11:43 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -673,12 +673,10 @@ void BasicIDE::UpdateModule( SfxObjectShell* pShell, const String& rLibName, con
if ( pShell )
{
// document basic
+ aLocation = String::CreateFromAscii("document");
+
SfxObjectShell* pCurrShell = SfxObjectShell::Current();
- if ( pShell == pCurrShell )
- {
- aLocation = String::CreateFromAscii("document");
- }
- else
+ if ( !bExecute && pShell != pCurrShell )
{
// error
bError = TRUE;