summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
authorAndreas Bregas <ab@openoffice.org>2002-10-30 08:27:01 +0000
committerAndreas Bregas <ab@openoffice.org>2002-10-30 08:27:01 +0000
commit15f5fd1a9772b1fbfc58cefb777999de67aef348 (patch)
treef999e94642478631827990b4b34a18beebbf8517 /basctl
parenta1d0c53d3da1c6ef8974ccf1e7a1af6127fc728e (diff)
#101048# ExecuteBasic(): Check if IDEShell still exists after execution
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/basicide/basides2.cxx11
1 files changed, 8 insertions, 3 deletions
diff --git a/basctl/source/basicide/basides2.cxx b/basctl/source/basicide/basides2.cxx
index 8721d912f297..5bff58a917a7 100644
--- a/basctl/source/basicide/basides2.cxx
+++ b/basctl/source/basicide/basides2.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: basides2.cxx,v $
*
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
*
- * last change: $Author: tbe $ $Date: 2001-09-25 09:10:51 $
+ * last change: $Author: ab $ $Date: 2002-10-30 09:27:01 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -333,6 +333,9 @@ void __EXPORT BasicIDEShell::ShowCursor( FASTBOOL bOn )
((ModulWindow*)pCurWin)->ShowCursor( (BOOL)bOn );
}
+// Hack for #101048
+sal_Int32 getBasicIDEShellCount( void );
+
// Nur wenn Basicfenster oben:
void __EXPORT BasicIDEShell::ExecuteBasic( SfxRequest& rReq )
{
@@ -340,6 +343,8 @@ void __EXPORT BasicIDEShell::ExecuteBasic( SfxRequest& rReq )
return;
pCurWin->ExecuteCommand( rReq );
- CheckWindows();
+ sal_Int32 nCount = getBasicIDEShellCount();
+ if( nCount )
+ CheckWindows();
}