]> git.lyx.org Git - features.git/commit
Fix bad caret position with horizontal scrolling
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 7 Oct 2019 10:31:20 +0000 (12:31 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 18 Jun 2020 13:48:45 +0000 (15:48 +0200)
commit6b68fb5ff71e15007d5c71cfec650d4824036e25
tree74ca13cb336ee457f549270c4edf46898f1871ab
parent35550133bef91414bb6deef296059c336ddcba87
Fix bad caret position with horizontal scrolling

Horizontal scrolling used to be taken into account when updating caret
geometry. This is wrong since it may have changed when time comes to
draw the caret. This leads to a situation where the first apparition
of the caret is at a wrong place.

Now the extra horizontal offset is used at drawing time.

Fixes bug #11603.
src/frontends/qt/GuiWorkArea.cpp