]> git.lyx.org Git - features.git/commit
Avoid some full metrics computations related to math previews
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 27 Nov 2023 14:13:56 +0000 (15:13 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 5 Apr 2024 11:06:26 +0000 (13:06 +0200)
commit5e8578837fea0321998eac04222102986261666d
treee6c3ed866f4e82cd1a488c7361ad9552e6c86a10
parentf7218cec188cad2dbf68de47ad4345fcddf1bdb8
Avoid some full metrics computations related to math previews

When entering/leaving a math hull inset, a Update::Force flag was set,
in case the metrics of the inset would change because of a switch
between normal and preview representation.

When entering the inset, this code is now used only when the inset was
in preview mode.

In both cases, Update::Force is replaced with Update::SinglePar.

This requites in Text::dispatch to honor Update::SinglePar when it has
been set by some lfun, even when singleparupdate is false.

Part of bug #12297.
src/Text.cpp
src/mathed/InsetMathHull.cpp