]> 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>
Mon, 7 Oct 2019 10:31:20 +0000 (12:31 +0200)
commitbdf58b77e7bebce6e9554151a909a5ee62be439f
tree6496a7857cc2b5a6208cc1b5f9fe680cd7aac7f3
parent0573bf92e08715266d97ba8cec74107d084744c8
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