diff options
author | Andreas Bregas <ab@openoffice.org> | 2001-03-28 10:22:44 +0000 |
---|---|---|
committer | Andreas Bregas <ab@openoffice.org> | 2001-03-28 10:22:44 +0000 |
commit | f0cf1fe0996be2e5ce0145d311b8b6dbf3f32065 (patch) | |
tree | f40f8995e4ccaa81c91697ff11256fbf8445bc54 /basctl/source | |
parent | 93304e64745d43b6f76f388eb0c73b37a3c54571 (diff) |
DialogWindow Ctor: Import existing dialog
Diffstat (limited to 'basctl/source')
-rw-r--r-- | basctl/source/basicide/baside3.cxx | 12 |
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 { |