diff options
author | Malte Timmermann <mt@openoffice.org> | 2001-05-15 11:31:37 +0000 |
---|---|---|
committer | Malte Timmermann <mt@openoffice.org> | 2001-05-15 11:31:37 +0000 |
commit | 82a5b5856eb3a8f6530ad89e3fb56f5f1fd57518 (patch) | |
tree | 6525d7f3d2a95068be14103cee5f378a42a62ece /toolkit | |
parent | 498dba88195da040293fd114b4283903b45e5e48 (diff) |
#86469# check if mxContext is a XControl...
Diffstat (limited to 'toolkit')
-rw-r--r-- | toolkit/source/controls/unocontrol.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/toolkit/source/controls/unocontrol.cxx b/toolkit/source/controls/unocontrol.cxx index 697277c28eeb..778c41c3710c 100644 --- a/toolkit/source/controls/unocontrol.cxx +++ b/toolkit/source/controls/unocontrol.cxx @@ -2,9 +2,9 @@ * * $RCSfile: unocontrol.cxx,v $ * - * $Revision: 1.9 $ + * $Revision: 1.10 $ * - * last change: $Author: mt $ $Date: 2001-04-11 15:09:19 $ + * last change: $Author: mt $ $Date: 2001-05-15 12:31:37 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -232,7 +232,7 @@ void UnoControl::PrepareWindowDescriptor( ::com::sun::star::awt::WindowDescripto if( mxContext.is() ) { ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl > xContComp( mxContext, ::com::sun::star::uno::UNO_QUERY ); - ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer > xP = xContComp->getPeer(); + ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer > xP = xContComp.is() ? xContComp->getPeer() : NULL; if ( xP.is() ) xP->queryInterface( ::getCppuType((const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow >*)0) ) >>= xPeer; } |