diff options
author | Christian Lippka <cl@openoffice.org> | 2001-07-31 07:58:24 +0000 |
---|---|---|
committer | Christian Lippka <cl@openoffice.org> | 2001-07-31 07:58:24 +0000 |
commit | 5154bd1b90c5af11addc10c9d3596c35cb9feea7 (patch) | |
tree | f29ad068e2c285d6f9d5a8f937b7ba19aca3165a /svx/source/unodraw | |
parent | 1d60bc3901a7069b609af91f74c70c082f3a52ba (diff) |
#90277# also create shape if pModel is still NULL
Diffstat (limited to 'svx/source/unodraw')
-rw-r--r-- | svx/source/unodraw/unoshape.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/svx/source/unodraw/unoshape.cxx b/svx/source/unodraw/unoshape.cxx index c687974948c9..1d2753db9761 100644 --- a/svx/source/unodraw/unoshape.cxx +++ b/svx/source/unodraw/unoshape.cxx @@ -2,9 +2,9 @@ * * $RCSfile: unoshape.cxx,v $ * - * $Revision: 1.62 $ + * $Revision: 1.63 $ * - * last change: $Author: er $ $Date: 2001-07-25 19:00:08 $ + * last change: $Author: cl $ $Date: 2001-07-31 08:58:24 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -437,8 +437,10 @@ void SvxShape::Init() throw() //---------------------------------------------------------------------- void SvxShape::Create( SdrObject* pNewObj, SvxDrawPage* pNewPage ) throw() { - if( pObj != pNewObj ) + if( pNewObj && ( (pObj != pNewObj) || (pModel == NULL) ) ) { + DBG_ASSERT( pNewObj->GetModel(), "no model for SdrObject?" ); + pObj = pNewObj; Init(); |