branch: Fix bug #6193: Crash when navigating away from an empty super/subscript.

see r31758.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31860 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2009-11-04 23:11:03 +00:00
parent 4e5580fef4
commit 2c615002b1
2 changed files with 4 additions and 1 deletions

View File

@ -1961,6 +1961,8 @@ bool BufferView::mouseSetCursor(Cursor & cur, bool select)
// persistent selection
cap::saveSelection(cursor());
d->cursor_.macroModeClose();
// Has the cursor just left the inset?
bool badcursor = false;
bool leftinset = (&d->cursor_.inset() != &cur.inset());
@ -1981,7 +1983,6 @@ bool BufferView::mouseSetCursor(Cursor & cur, bool select)
bool update = leftinset;
if (!do_selection && !badcursor && d->cursor_.inTexted())
update |= checkDepm(cur, d->cursor_);
d->cursor_.macroModeClose();
d->cursor_.resetAnchor();
d->cursor_.setCursor(cur);

View File

@ -184,6 +184,8 @@ What's new
which is missing a LaTeX command representation in the unicodesymbols
file (bug 6250).
- Fix a crash when leaving an empty superscript or subscript (bug 6193).
- Fix a number of assertions when displaying error messages (bug 6205).
- Fix bad allocation exception when displaying long tooltips (bug 6215).