summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <mst@openoffice.org>2011-05-13 17:19:55 +0200
committerCédric Bosdonnat <cedric.bosdonnat.ooo@free.fr>2011-05-13 17:19:55 +0200
commitcc33a4836285f422cbcb29b060e2ad5c1fea849f (patch)
tree65c69532c21602a4258abdf24dbbbc7fe77fb95b
parent7c36598c27cdb5ceb4076b04bd554bda8c5b0a69 (diff)
sw34bf06: #i117867#: SwUndoInserts::RedoImpl: do not use SwUndRng
Signed-off-by: Cédric Bosdonnat <cedric.bosdonnat.ooo@free.fr>
-rw-r--r--sw/source/core/undo/untblk.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/core/undo/untblk.cxx b/sw/source/core/undo/untblk.cxx
index 75a6b8e75f..fb3d146225 100644
--- a/sw/source/core/undo/untblk.cxx
+++ b/sw/source/core/undo/untblk.cxx
@@ -34,6 +34,7 @@
#include <frmfmt.hxx>
#include <doc.hxx>
#include <IDocumentUndoRedo.hxx>
+#include <IShellCursorSupplier.hxx>
#include <docary.hxx>
#include <swundo.hxx> // fuer die UndoIds
#include <pam.hxx>
@@ -270,7 +271,7 @@ void SwUndoInserts::UndoImpl(::sw::UndoRedoContext & rContext)
void SwUndoInserts::RedoImpl(::sw::UndoRedoContext & rContext)
{
// setze noch den Cursor auf den Redo-Bereich
- SwPaM *const pPam = & AddUndoRedoPaM(rContext);
+ SwPaM *const pPam(& rContext.GetCursorSupplier().CreateNewShellCursor());
SwDoc* pDoc = pPam->GetDoc();
pPam->DeleteMark();
pPam->GetPoint()->nNode = nSttNode - nNdDiff;