[Libreoffice-commits] .: sw/source

Cédric Bosdonnat cbosdo at kemper.freedesktop.org
Mon Jan 9 09:16:45 PST 2012


 sw/source/core/frmedt/fefly1.cxx |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit 3d3584237424b8efefdb0579e131892e1ddf00a9
Author: Cédric Bosdonnat <cedric.bosdonnat.ooo at free.fr>
Date:   Mon Jan 9 18:15:11 2012 +0100

    fdo#36681: refresh the layout after inserting a picture

diff --git a/sw/source/core/frmedt/fefly1.cxx b/sw/source/core/frmedt/fefly1.cxx
index 97c6a5d..473f6f3 100644
--- a/sw/source/core/frmedt/fefly1.cxx
+++ b/sw/source/core/frmedt/fefly1.cxx
@@ -846,6 +846,12 @@ void SwFEShell::Insert( const String& rGrfName, const String& rFltName,
         const Point aPt( GetCrsrDocPos() );
         SwFlyFrm* pFrm = pFmt->GetFrm( &aPt );
 
+        // Invalidate the content and layout to refresh the picture anchoring
+        // properly
+        SwPageFrm* pPageFrm = pFrm->FindPageFrmOfAnchor();
+        pPageFrm->InvalidateFlyLayout();
+        pPageFrm->InvalidateCntnt();
+
         if( pFrm )
             SelectFlyFrm( *pFrm, sal_True );
         else


More information about the Libreoffice-commits mailing list