From fed216d60661b0c4a064a0d37a4e338471e22a4f Mon Sep 17 00:00:00 2001 From: Christian Lippka Date: Wed, 19 Dec 2001 13:51:55 +0000 Subject: #96133# create edit source only when we also have a model --- svx/source/unodraw/unoshape.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'svx/source/unodraw') diff --git a/svx/source/unodraw/unoshape.cxx b/svx/source/unodraw/unoshape.cxx index e3742ce8d776..9f3d029ab579 100644 --- a/svx/source/unodraw/unoshape.cxx +++ b/svx/source/unodraw/unoshape.cxx @@ -2,9 +2,9 @@ * * $RCSfile: unoshape.cxx,v $ * - * $Revision: 1.88 $ + * $Revision: 1.89 $ * - * last change: $Author: cl $ $Date: 2001-12-19 14:32:06 $ + * last change: $Author: cl $ $Date: 2001-12-19 14:51:55 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -3641,7 +3641,7 @@ SvxShapeText::SvxShapeText() throw () SvxShapeText::SvxShapeText( SdrObject* pObject ) throw () : SvxShape( pObject ), SvxUnoTextBase( ImplGetSvxUnoOutlinerTextCursorPropertyMap() ) { - if( pObject ) + if( pObject && pObject->GetModel() ) SetEditSource( new SvxTextEditSource( pObject ) ); } -- cgit