Commits

Anonymous committed f573e7e

sw34bf06: #i117867#: SwUndoInserts::RedoImpl: do not use SwUndRng

Comments (0)

Files changed (1)

sw/source/core/undo/untblk.cxx

 #include <frmfmt.hxx>
 #include <doc.hxx>
 #include <IDocumentUndoRedo.hxx>
+#include <IShellCursorSupplier.hxx>
 #include <docary.hxx>
 #include <swundo.hxx>			// fuer die UndoIds
 #include <pam.hxx>
 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;