summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/source/core/frmedt/fefly1.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/sw/source/core/frmedt/fefly1.cxx b/sw/source/core/frmedt/fefly1.cxx
index 97c6a5d67f00..473f6f33bb65 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