From a10ea9d1d50b12d7a4ce1af75a14098d87951e3f Mon Sep 17 00:00:00 2001 From: Andreas Schierl Date: Tue, 31 Jan 2012 09:08:51 +0100 Subject: [PATCH] ClrContourCache for SwAnchoredDrawObject --- sw/source/core/layout/pagechg.cxx | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/sw/source/core/layout/pagechg.cxx b/sw/source/core/layout/pagechg.cxx index 79d7d1b..4b51cec 100644 --- a/sw/source/core/layout/pagechg.cxx +++ b/sw/source/core/layout/pagechg.cxx @@ -39,6 +39,7 @@ #include #include #include +#include #include #include #include @@ -2035,6 +2036,10 @@ void lcl_MoveAllLowerObjs( SwFrm* pFrm, const Point& rOffset ) const Point aNewAnchorPos( ( aCurrAnchorPos + rOffset ) ); pAnchoredDrawObj->DrawObj()->SetAnchorPos( aNewAnchorPos ); pAnchoredDrawObj->SetLastObjRect( pAnchoredDrawObj->GetObjRect().SVRect() ); + + // clear contour cache + if( pAnchoredDrawObj->GetFrmFmt().GetSurround().IsContour() ) + ClrContourCache( pAnchoredDrawObj->GetDrawObj() ); } // #i92511# // cache for object rectangle inclusive spaces has to be invalidated. -- 1.7.5.4