]> git.lyx.org Git - features.git/commit
Revert part of 503c7c16: InsetMathNest:edit resets anchor.
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 17 Mar 2022 15:42:39 +0000 (16:42 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 17 Mar 2022 16:02:23 +0000 (17:02 +0100)
commit307a2f91ada54af85bfc70d35bd42a61a49de8ef
treec972d2bc7e1f2b73028fdb7bf8e743f3ca8edb18
parentb9ca608c2f7ca2e1434e8e7cfc9e9c83f643c6c4
Revert part of 503c7c16: InsetMathNest:edit resets anchor.

Fixes bug reported here:
https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg217265.html

1. Start a new document.
2. Start a math inset and inside put "1+2".
3. Put the cursor to the right of "+".
4. Press <Shift> + L three times. This will select the entire math inset
   (as expected).
5. Press <Shift> + R.

Before 503c7c16, the selection inside the math inset was preserved.
After 503c7c16, it is lost.

The problem is that InsetMathNest does too much for our needs and
resets the anchor (why, I do not know). Therefore, it is better to
duplicate the code.
src/mathed/InsetMathHull.cpp