]> git.lyx.org Git - features.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 14:13:16 +0000 (16:13 +0200)
commitbe4e5dd43bf1563db832599b9e23c8800889db52
tree4bfaf5f0ee36a1474ca0d265f30497c22516af86
parenteb7b3c08f712fd0bc410aac56e80ba541d9de44c
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.

(cherry picked from commit a4d9315bc49445e4419b3b59fd238a13c5f7be31)
src/BufferView.cpp