]> git.lyx.org Git - lyx.git/commit
Avoid full metrics computation with Update:FitCursor
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 30 Apr 2024 13:02:16 +0000 (15:02 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 30 Apr 2024 13:18:13 +0000 (15:18 +0200)
commita4d9315bc49445e4419b3b59fd238a13c5f7be31
tree267ade60a3907dcf88c93071aed1d089c3e7c43a
parent527984ed2e0269861f5e1efc021fa0302d80819b
Avoid full metrics computation with Update:FitCursor

The handling of Update::FitCursor traditionnally recomputes all
metrics once or twice. Now that updateMetrics(false) ensures that all
paragraphs that require it have a metrics, we might as well use that.

Take this occasion to move handling of Update::SinglePar earlier,
before the check for Update::ForceDraw.
src/BufferView.cpp