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:
Vincent van Ravesteijn 2012-09-23 16:44:22 +02:00 committed by Juergen Spitzmueller
parent d43a6dfcbb
commit 12a575cc39
2 changed files with 4 additions and 0 deletions

View File

@ -2443,6 +2443,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());

View File

@ -105,6 +105,8 @@ What's new
* USER INTERFACE
- Fix crash when clicking on a completion in math mode (bug 8296).
- Fix regression in which clicking in the main work area always resets
the selected format in View -> Source (bug 8411).