[Libreoffice-commits] .: Branch 'libreoffice-3-5' - sw/source
Petr Mladek
pmladek at kemper.freedesktop.org
Tue Apr 17 04:44:34 PDT 2012
sw/source/core/layout/pagechg.cxx | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit 2d7ce65af37195343ff74b9e01c60f4b86eb6ebe
Author: Andreas Schierl <openoffice at schierla.de>
Date: Mon Jan 30 23:34:56 2012 +0100
ClrContourCache for SwAnchoredDrawObjects (fdo#45376)
call it only for contour wrapped drawing objects
Signed-off-by: Petr Mladek <pmladek at suse.cz>
diff --git a/sw/source/core/layout/pagechg.cxx b/sw/source/core/layout/pagechg.cxx
index 79d7d1b..ef0d1c8 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.
More information about the Libreoffice-commits
mailing list