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

fdo#36681: fixed view window after redoing a frame delete

Change-Id: I2b9f618ba6869fabf7c5ae2339421688aab127c7
üst 78fe6b83
......@@ -41,6 +41,7 @@
#include <frmfmt.hxx>
#include <viewimp.hxx>
#include <docsh.hxx>
#include <pagefrm.hxx>
/** helper function to select all objects in an SdrMarkList;
......@@ -82,6 +83,12 @@ SwEditShell::HandleUndoRedoContext(::sw::UndoRedoContext & rContext)
static_cast<SwFlyFrmFmt*>(pSelFmt)->GetFrm(& aPt, false);
if (pFly)
{
// fdo#36681: Invalidate the content and layout to refresh
// the picture anchoring properly
SwPageFrm* pPageFrm = pFly->FindPageFrmOfAnchor();
pPageFrm->InvalidateFlyLayout();
pPageFrm->InvalidateCntnt();
static_cast<SwFEShell*>(this)->SelectFlyFrm(*pFly, true);
}
}
......
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