incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From o..@apache.org
Subject svn commit: r1359258 - /incubator/ooo/trunk/main/sw/source/core/layout/pagechg.cxx
Date Mon, 09 Jul 2012 16:20:47 GMT
Author: orw
Date: Mon Jul  9 16:20:47 2012
New Revision: 1359258

URL: http://svn.apache.org/viewvc?rev=1359258&view=rev
Log:
#100684# - function <lcl_MoveAllLowerObjs(..)> - assure that contour cache is cleared.

           Found by: openoffice at schierla dot de 
           Patch by: openoffice at schierla dot de
           Reciew by: Oliver <orw at apache dot org>

Modified:
    incubator/ooo/trunk/main/sw/source/core/layout/pagechg.cxx

Modified: incubator/ooo/trunk/main/sw/source/core/layout/pagechg.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/sw/source/core/layout/pagechg.cxx?rev=1359258&r1=1359257&r2=1359258&view=diff
==============================================================================
--- incubator/ooo/trunk/main/sw/source/core/layout/pagechg.cxx (original)
+++ incubator/ooo/trunk/main/sw/source/core/layout/pagechg.cxx Mon Jul  9 16:20:47 2012
@@ -36,6 +36,7 @@
 #include <fmtfordr.hxx>
 #include <fmtfld.hxx>
 #include <fmtornt.hxx>
+#include <fmtsrnd.hxx>
 #include <ftninfo.hxx>
 #include <tgrditem.hxx>
 #include <viewopt.hxx>
@@ -2079,6 +2080,10 @@ void lcl_MoveAllLowerObjs( SwFrm* pFrm, 
             const Point aNewAnchorPos( ( aCurrAnchorPos + rOffset ) );
             pAnchoredDrawObj->DrawObj()->SetAnchorPos( aNewAnchorPos );
             pAnchoredDrawObj->SetLastObjRect( pAnchoredDrawObj->GetObjRect().SVRect()
);
+
+            // clear contour cache if contour wrapping is enabled #i100684#
+            if ( pAnchoredDrawObj->GetFrmFmt().GetSurround().IsContour() )
+                ClrContourCache( pAnchoredDrawObj->GetDrawObj() );
         }
         // --> OD 2009-08-20 #i92511#
         // cache for object rectangle inclusive spaces has to be invalidated.



Mime
View raw message