]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathNest.cpp
Set cursor pos after cursor idx to avoid invalid cursor.
[lyx.git] / 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: