]> git.lyx.org Git - lyx.git/commit
Cache the value of GuiFontMetrics::lbearing().
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 20 Mar 2019 09:56:16 +0000 (10:56 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 21 Mar 2019 17:43:37 +0000 (18:43 +0100)
commite0879b14602c0aff25ba951f6aa1277e4a94f988
tree666b33fbbbd829b93f089d1c0b6132539fdc8ed1
parentf94cdf6e1c6cd0ca9f4debb109f99e818fff68d9
Cache the value of GuiFontMetrics::lbearing().

This seems to be necessary on windows, where math editing can get very
slow. Note that other methods like rbearing already use a cache.

In the future all these caches for single characters shall be unified.

(cherry picked from commit d3979e798cd9c85041bb5e6158002384a8cddb8c)
src/frontends/qt4/GuiFontMetrics.cpp
src/frontends/qt4/GuiFontMetrics.h
status.23x