mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Return true to indicate we might have invalidated the cursor
If we don't do so, Cursor::notifyCursorLeavesOrEnters might continue with an invalidated cursor. Fixes-bug: #8329
This commit is contained in:
parent
795535e44f
commit
fc6b8c64f8
@ -620,10 +620,13 @@ void MathMacroTemplate::edit(Cursor & cur, bool front, EntryDirection entry_from
|
||||
|
||||
bool MathMacroTemplate::notifyCursorLeaves(Cursor const & old, Cursor & cur)
|
||||
{
|
||||
unsigned int const nargs_before = nargs();
|
||||
commitEditChanges(cur, old);
|
||||
updateLook();
|
||||
cur.screenUpdateFlags(Update::Force);
|
||||
return InsetMathNest::notifyCursorLeaves(old, cur);
|
||||
// If we have removed a cell, we might have invalidated the cursor
|
||||
return InsetMathNest::notifyCursorLeaves(old, cur)
|
||||
|| nargs() < nargs_before;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user