summaryrefslogtreecommitdiff
path: root/basctl/source
diff options
context:
space:
mode:
authorAndreas Bregas <ab@openoffice.org>2001-03-28 10:22:44 +0000
committerAndreas Bregas <ab@openoffice.org>2001-03-28 10:22:44 +0000
commitf0cf1fe0996be2e5ce0145d311b8b6dbf3f32065 (patch)
treef40f8995e4ccaa81c91697ff11256fbf8445bc54 /basctl/source
parent93304e64745d43b6f76f388eb0c73b37a3c54571 (diff)
DialogWindow Ctor: Import existing dialog
Diffstat (limited to 'basctl/source')
-rw-r--r--basctl/source/basicide/baside3.cxx12
1 files changed, 7 insertions, 5 deletions
diff --git a/basctl/source/basicide/baside3.cxx b/basctl/source/basicide/baside3.cxx
index e63d1139f262..ee060674db66 100644
--- a/basctl/source/basicide/baside3.cxx
+++ b/basctl/source/basicide/baside3.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: baside3.cxx,v $
*
- * $Revision: 1.7 $
+ * $Revision: 1.8 $
*
- * last change: $Author: tbe $ $Date: 2001-03-23 16:29:40 $
+ * last change: $Author: ab $ $Date: 2001-03-28 11:22:44 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -201,9 +201,11 @@ DialogWindow::DialogWindow( Window* pParent, VCSbxDialogRef aDialog, StarBASIC*
Any aElement = xLib->getByName( aOUDlgName );
Reference< XInputStreamProvider > xISP;
aElement >>= xISP;
-
- Reference< XInputStream > xInput( xISP->createInputStream() );
- ::xmlscript::importDialogModel( xInput, xDialogModel );
+ if( xISP.is() )
+ {
+ Reference< XInputStream > xInput( xISP->createInputStream() );
+ ::xmlscript::importDialogModel( xInput, xDialogModel );
+ }
}
else
{