summaryrefslogtreecommitdiff
path: root/basic/source/classes/eventatt.cxx
diff options
context:
space:
mode:
authorAndreas Bregas <ab@openoffice.org>2001-05-07 11:50:59 +0000
committerAndreas Bregas <ab@openoffice.org>2001-05-07 11:50:59 +0000
commit8458d08348843ad40297eef9586350c6b71ac22d (patch)
treebdbe536ebdb89e6ee8d797f51867397a29872d97 /basic/source/classes/eventatt.cxx
parentf2209fc1a8bcc20c025fb890e2c964b2121daa25 (diff)
#86386# Use right Basic instance to attach dialog events
Diffstat (limited to 'basic/source/classes/eventatt.cxx')
-rw-r--r--basic/source/classes/eventatt.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/basic/source/classes/eventatt.cxx b/basic/source/classes/eventatt.cxx
index 052cdddb39..3cb8ed0b46 100644
--- a/basic/source/classes/eventatt.cxx
+++ b/basic/source/classes/eventatt.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: eventatt.cxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: ab $ $Date: 2001-03-27 17:04:56 $
+ * last change: $Author: ab $ $Date: 2001-05-07 12:50:59 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -116,6 +116,8 @@
#include <sbunoobj.hxx>
#include <sbstar.hxx>
#include <sbmeth.hxx>
+#include <runtime.hxx>
+#include <sbintern.hxx>
#include <cppuhelper/implbase1.hxx>
@@ -583,7 +585,8 @@ void RTL_Impl_CreateUnoDialog( StarBASIC* pBasic, SbxArray& rPar, BOOL bWrite )
Reference< XToolkit > xToolkit( xMSF->createInstance(
OUString(RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.awt.ExtToolkit" ) ) ), UNO_QUERY );
xDlg->createPeer( xToolkit, NULL );
- attachDialogEvents( pBasic, xDlg );
+ StarBASIC* pStartedBasic = pINST->GetBasic();
+ attachDialogEvents( pStartedBasic, xDlg );
// Return dialog
Any aRetVal;