sw/source/core/layout/pagechg.cxx |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit 2d7ce65af37195343ff74b9e01c60f4b86eb6ebe
Author: Andreas Schierl <openoff...@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 <pmla...@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.
_______________________________________________
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to