]> git.lyx.org Git - features.git/commit
Avoid metrics computation on resize when width did not change
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 27 Nov 2023 10:46:52 +0000 (11:46 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 5 Apr 2024 11:06:26 +0000 (13:06 +0200)
commitf7218cec188cad2dbf68de47ad4345fcddf1bdb8
treead34cd6067020436382b2fffb315ddafefb33fe5
parent1d1f95d2ed0bf02e8a9cd9685ed4ba3365b9b493
Avoid metrics computation on resize when width did not change

Entering a math inset triggers a work area reize because the math
toobars appear automatically. However, by default these toolbars are
at the bottom of the screen and their presence does not change the
typesetting of paragraphs. Therefore it is useful to avoid a call to
updateMetrics() in the case where the width of the work area did not
change.

Part of bug #12297.
src/BufferView.cpp