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.
This commit is contained in:
Jean-Marc Lasgouttes 2021-02-25 20:00:41 +01:00
parent d7a4f47e7d
commit 3e3ad2937c

View File

@ -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