]> git.lyx.org Git - lyx.git/commit
Update insets position in cache in more cases
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 30 Aug 2017 16:05:16 +0000 (18:05 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 15 Feb 2018 11:29:25 +0000 (12:29 +0100)
commit9bb41f09436ad23fb881dd87e2caf3628b03403f
tree9dd55bfd815bdd2333936e7bef83d2789c0bb7bf
parent94b1d04f2c379291748365a296f2b6378d617f4a
Update insets position in cache in more cases

This patch makes sure that, every time a ParagraphMetrics has its
position set, the inset positions for the insets held by this
paragraph are remembered too.

This is complementary to BufferView::updatePosCache, but I do not have
hard evidence that this is required other than to increase robustness.
It may help in some cases when scrolling the document (scrollbar,
cursor up/down, page up/down).
src/BufferView.cpp
src/TextMetrics.cpp
src/TextMetrics.h