mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Fix bug #8296: Crash when clicking on completion in math
When the user clicks on the completion, the completion disappears. This means that we have to fix the cursor before setting it.
This commit is contained in:
parent
273ebbef19
commit
a1bda4e045
@ -2442,6 +2442,8 @@ bool BufferView::mouseSetCursor(Cursor & cur, bool select)
|
||||
cap::saveSelection(cursor());
|
||||
|
||||
d->cursor_.macroModeClose();
|
||||
// If a macro has been finalized, the cursor might have been broken
|
||||
cur.fixIfBroken();
|
||||
|
||||
// Has the cursor just left the inset?
|
||||
bool const leftinset = (&d->cursor_.inset() != &cur.inset());
|
||||
|
Loading…
Reference in New Issue
Block a user