[Libreoffice-commits] .: sw/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Tue Aug 28 01:11:39 PDT 2012
sw/source/core/edit/edundo.cxx | 7 +++++++
1 file changed, 7 insertions(+)
New commits:
commit fb63bdd04119698a2c8e40f946cd222d3114cb7f
Author: Cédric Bosdonnat <cedric.bosdonnat at free.fr>
Date: Tue Aug 28 10:07:21 2012 +0200
fdo#36681: fixed view window after redoing a frame delete
Change-Id: I2b9f618ba6869fabf7c5ae2339421688aab127c7
diff --git a/sw/source/core/edit/edundo.cxx b/sw/source/core/edit/edundo.cxx
index 26b64b0..8341cd2 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);
}
}
More information about the Libreoffice-commits
mailing list