From f0ad747053c828e869c7a7df84152a437300bf7f Mon Sep 17 00:00:00 2001 From: Andreas Martens Date: Thu, 9 Nov 2000 14:09:29 +0000 Subject: Fix #78742#: Remove has to delete the format too --- sw/source/core/draw/dcontact.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sw/source/core/draw/dcontact.cxx b/sw/source/core/draw/dcontact.cxx index fb992ea89c4b..bb87ef2a2541 100644 --- a/sw/source/core/draw/dcontact.cxx +++ b/sw/source/core/draw/dcontact.cxx @@ -2,9 +2,9 @@ * * $RCSfile: dcontact.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: jp $ $Date: 2000-10-30 17:57:05 $ + * last change: $Author: ama $ $Date: 2000-11-09 15:09:29 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -423,7 +423,6 @@ void SwDrawContact::_Changed(const SdrObject& rObj, SdrUserCallType eType, lcl_Notify( this, pOldBoundRect ); DisconnectFromLayout( FALSE ); SetMaster( NULL ); -// GetFmt()->GetDoc()->DelLayoutFmt( GetFmt() ); delete this; break; } @@ -438,6 +437,8 @@ void SwDrawContact::_Changed(const SdrObject& rObj, SdrUserCallType eType, { if( bNotify ) lcl_Notify( this, pOldBoundRect ); + if( GetAnchor() ) + GetFmt()->GetDoc()->DelLayoutFmt( GetFmt() ); DisconnectFromLayout( FALSE ); break; } -- cgit v1.2.3