commit 8a900a9773a096c8b02b29f2e0a9c4427aa036b7 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Thu Feb 20 17:54:37 2025 +0100
Assert when recordUndo is called without an active undo group. --- src/Undo.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Undo.cpp b/src/Undo.cpp index 5eb29bf7a0..d7816a2ce6 100644 --- a/src/Undo.cpp +++ b/src/Undo.cpp @@ -306,6 +306,7 @@ void Undo::Private::doRecordUndo(UndoKind kind, UndoElementStack & stack) { if (!group_level_) { + LATTEST(false); LYXERR0("There is no group open (creating one)"); ++group_id_; } -- lyx-cvs mailing list lyx-cvs@lists.lyx.org https://lists.lyx.org/mailman/listinfo/lyx-cvs