]> git.lyx.org Git - lyx.git/commit
Introduce BufferView::caretInView()
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sun, 14 Jul 2019 21:20:29 +0000 (23:20 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 18 Sep 2020 07:26:28 +0000 (09:26 +0200)
commit64e5a8c01660051a8c5831f6b0f8ef4c66866034
tree4d09014e8ab981559b6fb7448dd558415f35d650
parent195f307a3904450152bcf24b31cf96067c4a5feb
Introduce BufferView::caretInView()

It is not a good idea to call caretPosAndHeight when the caret is in a
paragraph that is not in cached metrics. This can happen when not
using "cursor follows scrollbar".

This commit refactor things a bit so that testing is done in
BufferView.

(cherry picked from commit e6b54ea4d2e28d55565699ded45da971278b23bf)
src/BufferView.cpp
src/BufferView.h
src/frontends/qt4/GuiWorkArea.cpp