From ce476c8daeb43b264afd1b4dc22b1eb8746813ab Mon Sep 17 00:00:00 2001 From: Jens-Heiner Rechtien Date: Mon, 10 May 2004 13:30:58 +0000 Subject: INTEGRATION: CWS aw009 (1.2.196); FILE MERGED 2004/04/29 11:12:25 aw 1.2.196.2: #116168# Changed ViewContact::ActionRemoved() to not call ViewContact::ActionChanged(). That call would again setup e.g. AnimationInfos which may fail due to models in destruction. Also expanded ::SupportsAnimation() implementations to always take care of SdrObject::IsInDestruction(). 2004/04/28 12:05:01 aw 1.2.196.1: #115931# --- svx/source/sdr/contact/viewcontactofgraphic.cxx | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'svx/source/sdr/contact/viewcontactofgraphic.cxx') diff --git a/svx/source/sdr/contact/viewcontactofgraphic.cxx b/svx/source/sdr/contact/viewcontactofgraphic.cxx index 6914a11b0c9a..b9620b2ef538 100644 --- a/svx/source/sdr/contact/viewcontactofgraphic.cxx +++ b/svx/source/sdr/contact/viewcontactofgraphic.cxx @@ -2,9 +2,9 @@ * * $RCSfile: viewcontactofgraphic.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: rt $ $Date: 2003-11-24 16:45:11 $ + * last change: $Author: hr $ $Date: 2004-05-10 14:30:58 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -393,6 +393,13 @@ namespace sdr // Decide if graphic should be painted as draft sal_Bool ViewContactOfGraphic::DoPaintGraphicDraft(DisplayInfo& rDisplayInfo) const { + // #115931# + // Take care for SDRPAINTMODE_DRAFTGRAF + if(rDisplayInfo.IsDraftGraphic()) + { + return sal_True; + } + SdrGrafObj& rGrafObj = GetGrafObject(); if(rGrafObj.IsSwappedOut()) @@ -557,6 +564,12 @@ namespace sdr sal_Bool ViewContactOfGraphic::SupportsAnimation() const { + // #116168# If object is in destruction, force animation support to sal_False + if(GetGrafObject().IsInDestruction()) + { + return sal_False; + } + // Is animation allowed? if(!GetGrafObject().IsGrafAnimationAllowed()) { -- cgit v1.2.3