summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bosdonnat <cedric.bosdonnat@free.fr>2012-08-28 10:07:21 +0200
committerCédric Bosdonnat <cedric.bosdonnat@free.fr>2012-08-28 10:08:42 +0200
commitfb63bdd04119698a2c8e40f946cd222d3114cb7f (patch)
tree560af0991c9227f06efd6f0585ae2ed90c73da4c
parent78fe6b835840049434170003a8dcf14535fd7bf2 (diff)
fdo#36681: fixed view window after redoing a frame delete
Change-Id: I2b9f618ba6869fabf7c5ae2339421688aab127c7
-rw-r--r--sw/source/core/edit/edundo.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/sw/source/core/edit/edundo.cxx b/sw/source/core/edit/edundo.cxx
index 26b64b0dd259..8341cd256e68 100644
--- a/sw/source/core/edit/edundo.cxx
+++ b/sw/source/core/edit/edundo.cxx
@@ -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);
}
}