[Libreoffice-commits] .: Branch 'libreoffice-3-5' - sw/source
Cédric Bosdonnat
cbosdo at kemper.freedesktop.org
Mon Jan 9 09:20:57 PST 2012
sw/source/core/frmedt/fefly1.cxx | 6 ++++++
1 file changed, 6 insertions(+)
New commits:
commit 4463a523ae78a9eff1776668825ec6be944c1574
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