Fix bug #8140: Crash with math macros and input completion

When clicking away in the same math inset after hitting '\', the
cursor may be broken and all of its instances have to be fixed.

(cherry picked from commit 9825621798)
This commit is contained in:
Enrico Forestieri 2012-04-30 23:55:34 +02:00
parent 4296e47d28
commit 124bc762a7
2 changed files with 5 additions and 2 deletions

View File

@ -2171,8 +2171,8 @@ void BufferView::mouseEventDispatch(FuncRequest const & cmd0)
// Notify left insets
if (cur != old) {
old.fixIfBroken();
bool badcursor = notifyCursorLeavesOrEnters(old, cur);
bool badcursor = old.fixIfBroken() | cur.fixIfBroken()
| notifyCursorLeavesOrEnters(old, cur);
if (badcursor)
cursor().fixIfBroken();
}

View File

@ -162,6 +162,9 @@ What's new
- Fix the coloring of Quotation marks with change tracking (bug 7653).
- Fix crash when clicking away in the same math inset just after hitting '\'
(bug 8140).
* DOCUMENTATION AND LOCALIZATION