mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Avoid crash with after a params undo.
When doing a non-atomic undo, one should not try to merge with a previous params undo. This fixes bug #7740.
This commit is contained in:
parent
0a03528376
commit
58b3971eeb
@ -121,7 +121,7 @@ struct UndoElement
|
||||
ParagraphList * pars;
|
||||
/// the contents of the saved MathData (for mathed)
|
||||
MathData * array;
|
||||
/// Only used in case of full backups
|
||||
/// Only used in case of params undo
|
||||
BufferParams const * bparams;
|
||||
/// Was the buffer clean at this point?
|
||||
bool lyx_clean;
|
||||
@ -321,6 +321,7 @@ void Undo::Private::doRecordUndo(UndoKind kind,
|
||||
if (!undo_finished_
|
||||
&& kind != ATOMIC_UNDO
|
||||
&& !stack.empty()
|
||||
&& !stack.top().bparams
|
||||
&& samePar(stack.top().cell, cell)
|
||||
&& stack.top().kind == kind
|
||||
&& stack.top().from == from
|
||||
|
Loading…
Reference in New Issue
Block a user