]> git.lyx.org Git - features.git/commitdiff
Set cursor pos after cursor idx to avoid invalid cursor.
authorJuergen Spitzmueller <spitz@lyx.org>
Fri, 4 Apr 2014 09:39:22 +0000 (11:39 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Fri, 4 Apr 2014 09:39:22 +0000 (11:39 +0200)
Fixes: #9076
src/mathed/InsetMathNest.cpp

index c110e12a13db8cbc617196e5dfa999ca6e7c389f..ab88cf96f4133b5be5221fe2bd3475cf7e177d82 100644 (file)
@@ -734,8 +734,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();
                break;
 
        case LFUN_PARAGRAPH_UP: