summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMichael Stahl <mst@apache.org>2011-09-17 21:40:03 +0000
committerMichael Stahl <mst@apache.org>2011-09-17 21:40:03 +0000
commit40c412acf761c386a6de15a92db0fcdd5a05004c (patch)
tree807fbb0a68ea9ebac1bd7246d70646506adf6665 /sw
parentb744fca2055659e09187512f474d7da5ef6e8cfc (diff)
sw34bf06: #i117867#: SwUndoInserts::RedoImpl: do not use SwUndRng
# HG changeset patch # User Michael Stahl <mst@openoffice.org> # Date 1304511728 0 # Node ID f573e7e8e68c3741b01779dbba749ab85ee90d1c # Parent 766a0b3ad79f0aba468ae8ca769cad4906057167
Diffstat (limited to 'sw')
-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 55afbf9b9c99..a841c78a59fd 100644
--- a/sw/source/core/undo/untblk.cxx
+++ b/sw/source/core/undo/untblk.cxx
@@ -33,6 +33,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>
@@ -269,7 +270,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;