]> git.lyx.org Git - features.git/commit
Fixup 5202d44e: make caret geometry update lazy
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 7 Sep 2020 13:45:30 +0000 (15:45 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 11 Sep 2020 09:48:12 +0000 (11:48 +0200)
commitc1f8c6c26d5480556db1500160d1df6ce79a724f
tree563e0919509b8e98a2947405edbd5cbbe14ddf52
parent6a5f1f380e5e988367fdb0ffa86e5177ff88e3ff
Fixup 5202d44e: make caret geometry update lazy

Instead of working around crashes in update of caret geometry, only
request it as needed. The actual computation will take place just
before painting the caret.

It might be that this is overkill and that caret geometry should be
updated unconditionally. One would have to to some timing while idle to
ascertain that.

Fixes bug #11912.
src/frontends/qt/GuiWorkArea.cpp
src/frontends/qt/GuiWorkArea_Private.h