]> git.lyx.org Git - features.git/commit
Fixup 0fed10e4: make sure redraw happens as needed
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 31 Jan 2023 23:02:35 +0000 (00:02 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 31 Jan 2023 23:09:49 +0000 (00:09 +0100)
commit1081893e972b58942db5173c51e0796427355c11
tree819d18560f14397402909c0cc2237396861c1e63
parent439c09912482489e79399fd9e10fa2b7f717f565
Fixup 0fed10e4: make sure redraw happens as needed

This commit had had an additional not documented change: redraws
happen only when they are needed. This did not help fix the bug, but
looked smart on first sight. Alas, I find that these smart changes
added because "why not?" tend to come back to haunt me eventually.

In particular this case, the problem was that the code tested whether
the offset of anchor paragraph had changed, but not whether the
paragraph itself had changed. This means that, when switching from one
section to another with the outliner, the view was not updated.
src/BufferView.cpp