From: Juergen Spitzmueller Date: Fri, 4 Apr 2014 09:39:22 +0000 (+0200) Subject: Set cursor pos after cursor idx to avoid invalid cursor. X-Git-Tag: 2.1.0~71 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=fb21a6333973a7b6e7e1f53a02330bdc42ae2ba7;p=features.git Set cursor pos after cursor idx to avoid invalid cursor. Fixes: #9076 --- diff --git a/src/mathed/InsetMathNest.cpp b/src/mathed/InsetMathNest.cpp index c110e12a13..ab88cf96f4 100644 --- a/src/mathed/InsetMathNest.cpp +++ b/src/mathed/InsetMathNest.cpp @@ -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: