| author | Cédric Bosdonnat <cedric.bosdonnat@free.fr> | 2012-08-28 08:07:21 (GMT) |
|---|---|---|
| committer | Cédric Bosdonnat <cedric.bosdonnat@free.fr> | 2012-08-28 08:08:42 (GMT) |
| commit | fb63bdd04119698a2c8e40f946cd222d3114cb7f (patch) (side-by-side diff) | |
| tree | 560af0991c9227f06efd6f0585ae2ed90c73da4c | |
| parent | 78fe6b835840049434170003a8dcf14535fd7bf2 (diff) | |
| download | core-fb63bdd04119698a2c8e40f946cd222d3114cb7f.zip core-fb63bdd04119698a2c8e40f946cd222d3114cb7f.tar.gz | |
fdo#36681: fixed view window after redoing a frame delete
Change-Id: I2b9f618ba6869fabf7c5ae2339421688aab127c7
| -rw-r--r-- | sw/source/core/edit/edundo.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
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); } } |
