mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 02:14:50 +00:00
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:
parent
d7a4f47e7d
commit
3e3ad2937c
@ -454,7 +454,6 @@ void Undo::Private::doUndoRedoAction(CursorData & cur, UndoElementStack & stack,
|
|||||||
ErrorList el;
|
ErrorList el;
|
||||||
cap::switchBetweenClasses(olddc, buffer_.params().documentClassPtr(),
|
cap::switchBetweenClasses(olddc, buffer_.params().documentClassPtr(),
|
||||||
static_cast<InsetText &>(buffer_.inset()), el);
|
static_cast<InsetText &>(buffer_.inset()), el);
|
||||||
LATTEST(el.empty());
|
|
||||||
} else if (dit.inMathed()) {
|
} else if (dit.inMathed()) {
|
||||||
// We stored the full cell here as there is not much to be
|
// We stored the full cell here as there is not much to be
|
||||||
// gained by storing just 'a few' paragraphs (most if not
|
// gained by storing just 'a few' paragraphs (most if not
|
||||||
|
Loading…
Reference in New Issue
Block a user