diff options
author | Christian Lippka <cl@openoffice.org> | 2001-03-30 11:18:08 +0000 |
---|---|---|
committer | Christian Lippka <cl@openoffice.org> | 2001-03-30 11:18:08 +0000 |
commit | 2dcc5db688ece2cebc9dc7016f987c5eba36b73c (patch) | |
tree | 30d93e0840e43ee476301d6ef0565752866b8a1f /svx/source/unodraw | |
parent | 363a662c7e3baf43b56a952947ed42e7ffe4e7ff (diff) |
#85472# fixed add shape that crashed when given an empty shape reference
Diffstat (limited to 'svx/source/unodraw')
-rw-r--r-- | svx/source/unodraw/unopage.cxx | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/svx/source/unodraw/unopage.cxx b/svx/source/unodraw/unopage.cxx index 73654290fc05..fdaa9b7eda1f 100644 --- a/svx/source/unodraw/unopage.cxx +++ b/svx/source/unodraw/unopage.cxx @@ -2,9 +2,9 @@ * * $RCSfile: unopage.cxx,v $ * - * $Revision: 1.9 $ + * $Revision: 1.10 $ * - * last change: $Author: cl $ $Date: 2001-03-19 09:13:49 $ + * last change: $Author: cl $ $Date: 2001-03-30 12:18:08 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -219,6 +219,9 @@ void SAL_CALL SvxDrawPage::add( const Reference< drawing::XShape >& xShape ) SvxShape* pShape = SvxShape::getImplementation( xShape ); + if( NULL == pShape ) + return; + SdrObject *pObj = pShape->GetSdrObject(); if(!pObj) @@ -231,7 +234,9 @@ void SAL_CALL SvxDrawPage::add( const Reference< drawing::XShape >& xShape ) pPage->InsertObject( pObj ); } else - throw uno::RuntimeException(); + { + return; + } if(pObj == NULL) return; |