[LyX/master] Remove assertion that is not necessary.

Jean-Marc Lasgouttes lasgouttes at lyx.org
Thu Feb 25 18:58:49 UTC 2021


commit 3e3ad2937cbb26724eb5c898b905f882df8e3a63
Author: Jean-Marc Lasgouttes <lasgouttes at lyx.org>
Date:   Thu Feb 25 20:00:41 2021 +0100

    Remove assertion that is not necessary.
    
    It may happen that there are errors when doing undo, crashing does not
    help in this case.
    
    Fixes bug #12163.
---
 src/Undo.cpp |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/src/Undo.cpp b/src/Undo.cpp
index ebe2350..e7c84f5 100644
--- a/src/Undo.cpp
+++ b/src/Undo.cpp
@@ -454,7 +454,6 @@ void Undo::Private::doUndoRedoAction(CursorData & cur, UndoElementStack & stack,
 		ErrorList el;
 		cap::switchBetweenClasses(olddc, buffer_.params().documentClassPtr(),
 			static_cast<InsetText &>(buffer_.inset()), el);
-		LATTEST(el.empty());
 	} else if (dit.inMathed()) {
 		// We stored the full cell here as there is not much to be
 		// gained by storing just 'a few' paragraphs (most if not


More information about the lyx-cvs mailing list