From fb21a6333973a7b6e7e1f53a02330bdc42ae2ba7 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Fri, 4 Apr 2014 11:39:22 +0200 Subject: [PATCH] Set cursor pos after cursor idx to avoid invalid cursor. Fixes: #9076 --- src/mathed/InsetMathNest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.39.2