]> 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>
Thu, 18 Jun 2020 13:48:36 +0000 (15:48 +0200)
commit31f155ec82b97cd4f88d6a85bcb19df0d9e9b918
tree5c3c8dbab736c9a8d92e1a7176d1c44f5a22a4e0
parent935bb28528863ad72c8fa8ddebb1da9322e82d9c
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