]> git.lyx.org Git - features.git/commit
Fix assertion from setCursor() in outline-down/up
authorScott Kostyshak <skostysh@lyx.org>
Thu, 26 Mar 2020 22:57:25 +0000 (18:57 -0400)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 18 Jun 2020 13:48:55 +0000 (15:48 +0200)
commitfa71aec25062399048aab1d2509477f71d6feba4
treec71b0fbb2309cf7c03b226b2ed635a09d8fc1249
parentad61cf5087fd70e738490a10c3399f62fe011352
Fix assertion from setCursor() in outline-down/up

The function outline() itself can change the cursor position in some
cases so we need to store the old position before calling outline().

Spotted by Kornel. For an example file that triggered the assertion,
see:

  https://www.mail-archive.com/search?l=mid&q=20200326183314.09ad4c7c%40admin1-desktop

This commit amends adb7283b.
src/Text3.cpp