diff options
author | jp <jp@openoffice.org> | 2000-12-07 14:11:35 +0000 |
---|---|---|
committer | jp <jp@openoffice.org> | 2000-12-07 14:11:35 +0000 |
commit | 948c7ed807c8fb66b80c8cbffa9e0d2912cade3d (patch) | |
tree | 9766fa8c1f5e87b25be1149ca1e09fe1dc79aa27 /sw | |
parent | 65962f5b916d2caf3a44a62e4bd082cbfc01da1e (diff) |
Bug #81536# don't call on 0-pointer
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/unocore/unoframe.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sw/source/core/unocore/unoframe.cxx b/sw/source/core/unocore/unoframe.cxx index 9fad5611f8c5..482e59320427 100644 --- a/sw/source/core/unocore/unoframe.cxx +++ b/sw/source/core/unocore/unoframe.cxx @@ -2,9 +2,9 @@ * * $RCSfile: unoframe.cxx,v $ * - * $Revision: 1.16 $ + * $Revision: 1.17 $ * - * last change: $Author: mib $ $Date: 2000-12-06 14:24:31 $ + * last change: $Author: jp $ $Date: 2000-12-07 15:11:35 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -2549,8 +2549,9 @@ uno::Reference< XComponent > SwXTextEmbeddedObject::getEmbeddedObject(void) thr uno::Reference< util::XModifyBroadcaster > xBrdcst(xModel, uno::UNO_QUERY); if( xBrdcst.is() ) { - SwXOLEListener* pSwOLEListener = 0; - if( !xSwXOLEListener.is() ) + SwXOLEListener* pSwOLEListener = (SwXOLEListener*) + xSwXOLEListener.get(); + if( !pSwOLEListener ) xSwXOLEListener = pSwOLEListener = new SwXOLEListener; if( pSwOLEListener->AddOLEFmt( *pFmt ) ) xBrdcst->addModifyListener( xSwXOLEListener ); |