]> git.lyx.org Git - lyx.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>
Wed, 16 Oct 2019 14:44:42 +0000 (16:44 +0200)
commit7c35081d0c4e48b2ff73c5a11c5446f5288802af
tree3043a16d0d0f1f5a723e45ddc4032f6fdb3049ed
parentfe426c2db88298229c6bd7ce5a410e7268aa30f7
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.

(cherry picked from commit bdf58b77e7bebce6e9554151a909a5ee62be439f)
src/frontends/qt4/GuiWorkArea.cpp
status.23x