summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schierl <openoffice@schierla.de>2012-01-30 23:34:56 +0100
committerPetr Mladek <pmladek@suse.cz>2012-04-17 13:43:03 +0200
commit2d7ce65af37195343ff74b9e01c60f4b86eb6ebe (patch)
tree78c198cbca5301dc500d4d14f93ddd5c5610ec94
parent513ae531ccd3080fa1089d2d9d7dc829e96267cf (diff)
ClrContourCache for SwAnchoredDrawObjects (fdo#45376)
call it only for contour wrapped drawing objects Signed-off-by: Petr Mladek <pmladek@suse.cz>
-rw-r--r--sw/source/core/layout/pagechg.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/sw/source/core/layout/pagechg.cxx b/sw/source/core/layout/pagechg.cxx
index 79d7d1beb433..ef0d1c8a9449 100644
--- a/sw/source/core/layout/pagechg.cxx
+++ b/sw/source/core/layout/pagechg.cxx
@@ -39,6 +39,7 @@
#include <fmtfordr.hxx>
#include <fmtfld.hxx>
#include <fmtornt.hxx>
+#include <fmtsrnd.hxx>
#include <ftninfo.hxx>
#include <tgrditem.hxx>
#include <viewopt.hxx>
@@ -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.