commit fb21a6333973a7b6e7e1f53a02330bdc42ae2ba7
Author: Juergen Spitzmueller <[email protected]>
Date:   Fri Apr 4 11:39:22 2014 +0200

    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 c110e12..ab88cf9 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:

Reply via email to