]> git.lyx.org Git - features.git/commit
Fix assertion in caret display code
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sun, 14 Jul 2019 21:20:29 +0000 (23:20 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sun, 14 Jul 2019 21:27:44 +0000 (23:27 +0200)
commite6b54ea4d2e28d55565699ded45da971278b23bf
treee009e70cc8bef33c108c7dfdd8f40dc8f4b25c82
parent321923444a0739c463d557a14586cf8049cb019f
Fix assertion in caret display code

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.

This bug is not in 2.3.x.
src/BufferView.cpp
src/BufferView.h
src/frontends/qt4/GuiWorkArea.cpp