Set cursor pos after cursor idx to avoid invalid cursor.

Fixes: #9076
This commit is contained in:
Juergen Spitzmueller 2014-04-04 16:28:21 +02:00
parent 20a0089dba
commit 0a61ff1342
2 changed files with 3 additions and 1 deletions

View File

@ -730,8 +730,8 @@ void InsetMathNest::doDispatch(Cursor & cur, FuncRequest & cmd)
cur.idx() = 0;
cur.resetAnchor();
cur.setSelection(true);
cur.pos() = cur.lastpos();
cur.idx() = cur.lastidx();
cur.pos() = cur.lastpos();
cur.bv().cursor() = cur;
break;

View File

@ -100,6 +100,8 @@ What's new
- Fix crash when performing "Change Case" operation on a selection with font
changes (bug 7943).
- Fix crash when performing selection in math insets (bug 9076).
- Fix hang when selecting text (bug 8837).
- Fix assertion when entering a path into the import dialog (bug 7437).