Discussion:
[LyX/2.2-staging] Fix selection drawing after mouse-double/triple in mathed
Juergen Spitzmueller
2014-03-21 09:20:24 UTC
Permalink
commit 8285e7586b4d45bbb055a131c0cdd8fbe042b734
Author: Juergen Spitzmueller <***@lyx.org>
Date: Fri Mar 21 10:20:12 2014 +0100

Fix selection drawing after mouse-double/triple in mathed

Fixes: #8829

diff --git a/src/mathed/InsetMathNest.cpp b/src/mathed/InsetMathNest.cpp
index c110e12..c3edfaa 100644
--- a/src/mathed/InsetMathNest.cpp
+++ b/src/mathed/InsetMathNest.cpp
@@ -736,6 +736,7 @@ void InsetMathNest::doDispatch(Cursor & cur, FuncRequest & cmd)
cur.setSelection(true);
cur.pos() = cur.lastpos();
cur.idx() = cur.lastidx();
+ cur.bv().cursor() = cur;
break;

case LFUN_PARAGRAPH_UP:
Juergen Spitzmueller
2014-03-23 09:54:42 UTC
Permalink
commit 1c35155810ebfb0a11848101eede1dedea44fc29
Author: Juergen Spitzmueller <***@lyx.org>
Date: Fri Mar 21 10:20:12 2014 +0100

Fix selection drawing after mouse-double/triple in mathed

Fixes: #8829

diff --git a/src/mathed/InsetMathNest.cpp b/src/mathed/InsetMathNest.cpp
index 22d6334..1e555ce 100644
--- a/src/mathed/InsetMathNest.cpp
+++ b/src/mathed/InsetMathNest.cpp
@@ -732,6 +732,7 @@ void InsetMathNest::doDispatch(Cursor & cur, FuncRequest & cmd)
cur.setSelection(true);
cur.pos() = cur.lastpos();
cur.idx() = cur.lastidx();
+ cur.bv().cursor() = cur;
break;

case LFUN_PARAGRAPH_UP:
diff --git a/status.20x b/status.20x
index 07118ef..46ca79d 100644
--- a/status.20x
+++ b/status.20x
@@ -123,6 +123,8 @@ What's new

- Fix "Select Section" function in the Outliner (bug 8936).

+- Fix select-by-doubleclick in mathed (bug 8829).
+

* DOCUMENTATION AND LOCALIZATIO
Juergen Spitzmueller
2014-03-23 09:54:49 UTC
Permalink
commit a7e80e5f3bd465e1769b0be258029224c6407cd2
Author: Juergen Spitzmueller <***@lyx.org>
Date: Fri Mar 21 10:20:12 2014 +0100

Fix selection drawing after mouse-double/triple in mathed

Fixes: #8829

diff --git a/src/mathed/InsetMathNest.cpp b/src/mathed/InsetMathNest.cpp
index c110e12..c3edfaa 100644
--- a/src/mathed/InsetMathNest.cpp
+++ b/src/mathed/InsetMathNest.cpp
@@ -736,6 +736,7 @@ void InsetMathNest::doDispatch(Cursor & cur, FuncRequest & cmd)
cur.setSelection(true);
cur.pos() = cur.lastpos();
cur.idx() = cur.lastidx();
+ cur.bv().cursor() = cur;
break;

case LFUN_PARAGRAPH_UP:
diff --git a/status.21x b/status.21x
index 2e8a172..17c3e7e 100644
--- a/status.21x
+++ b/status.21x
@@ -62,6 +62,8 @@ What's new
drawn around very small preview imagines, so they can be seen (bug 7522).

- Fix "Select Section" function in the Outliner (bug 8936).
+
+- Fix select-by-doubleclick in mathed (bug 8829).


* DOCUMENTA

Loading...