sw/source/core/undo/unmove.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit c8bb39a0892820fb7be62825a818e12551d76610 Author: Jim Raykowski <[email protected]> AuthorDate: Sat Dec 27 11:56:08 2025 -0900 Commit: Jim Raykowski <[email protected]> CommitDate: Wed Dec 31 16:15:03 2025 +0100 related tdf#167491 fix crash in SwUndoMove::RedoImpl Revealed by sort chapters undo redo of WG7617-Fields.odt Change-Id: I12bb39a5b04a797306d8652855d23adb91e480cd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196261 Tested-by: Jenkins Reviewed-by: Jim Raykowski <[email protected]> diff --git a/sw/source/core/undo/unmove.cxx b/sw/source/core/undo/unmove.cxx index aba7c2180659..8190cd5865e9 100644 --- a/sw/source/core/undo/unmove.cxx +++ b/sw/source/core/undo/unmove.cxx @@ -234,7 +234,6 @@ void SwUndoMove::UndoImpl(::sw::UndoRedoContext & rContext) void SwUndoMove::RedoImpl(::sw::UndoRedoContext & rContext) { - SwPaM& rPam = AddUndoRedoPaM(rContext); SwDoc& rDoc = rContext.GetDoc(); SwNodes& rNds = rDoc.GetNodes(); @@ -250,6 +249,7 @@ void SwUndoMove::RedoImpl(::sw::UndoRedoContext & rContext) } else { + SwPaM& rPam = AddUndoRedoPaM(rContext); SwPaM aPam(*rPam.GetPoint()); SetPaM( aPam ); SwPosition aMvPos( aIdx, aIdx.GetNode().GetContentNode(), m_nMoveDestContent );
