sw/source/core/undo/docundo.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit f80b4a455768131b6054ab5fe80b3c6aac7f0286
Author:     Michael Stahl <michael.st...@allotropia.de>
AuthorDate: Fri May 23 17:37:55 2025 +0200
Commit:     Michael Stahl <michael.st...@allotropia.de>
CommitDate: Wed May 28 13:17:34 2025 +0200

    LOCRDT sw: return EMPTY from EndUndo() if no action inserted
    
    Apparently code in inputwin.cxx already checks for this.
    
    Change-Id: Iaae1b8894b421d8d7bf7b22908abd6cfbf265690
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/185865
    Tested-by: Jenkins
    Reviewed-by: Michael Stahl <michael.st...@allotropia.de>

diff --git a/sw/source/core/undo/docundo.cxx b/sw/source/core/undo/docundo.cxx
index 786bd3762815..56a068890239 100644
--- a/sw/source/core/undo/docundo.cxx
+++ b/sw/source/core/undo/docundo.cxx
@@ -353,6 +353,10 @@ UndoManager::EndUndo(SwUndoId eUndoId, SwRewriter 
const*const pRewriter)
             OSL_ENSURE(false, "EndUndo(): no comment?");
         }
     }
+    else
+    {
+        eUndoId = SwUndoId::EMPTY;
+    }
 
     return eUndoId;
 }

Reply via email to