Kaydet (Commit) 3d358423 authored tarafından Cédric Bosdonnat's avatar Cédric Bosdonnat

fdo#36681: refresh the layout after inserting a picture

üst 0d6e8c35
...@@ -846,6 +846,12 @@ void SwFEShell::Insert( const String& rGrfName, const String& rFltName, ...@@ -846,6 +846,12 @@ void SwFEShell::Insert( const String& rGrfName, const String& rFltName,
const Point aPt( GetCrsrDocPos() ); const Point aPt( GetCrsrDocPos() );
SwFlyFrm* pFrm = pFmt->GetFrm( &aPt ); 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 ) if( pFrm )
SelectFlyFrm( *pFrm, sal_True ); SelectFlyFrm( *pFrm, sal_True );
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment