commit 0a61ff13427b5663c662180c3d3d0959982a512e
Author: Juergen Spitzmueller <[email protected]>
Date: Fri Apr 4 16:28:21 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 1e555ce..1c498dc 100644
--- a/src/mathed/InsetMathNest.cpp
+++ b/src/mathed/InsetMathNest.cpp
@@ -730,8 +730,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();
cur.bv().cursor() = cur;
break;
diff --git a/status.20x b/status.20x
index 9f6642d..0e6ad63 100644
--- a/status.20x
+++ b/status.20x
@@ -100,6 +100,8 @@ What's new
- Fix crash when performing "Change Case" operation on a selection with font
changes (bug 7943).
+- Fix crash when performing selection in math insets (bug 9076).
+
- Fix hang when selecting text (bug 8837).
- Fix assertion when entering a path into the import dialog (bug 7437).