]> git.lyx.org Git - features.git/commit
Clean up and fixes to fractions metrics and drawing
authorGuillaume Munch <gm@lyx.org>
Sun, 20 Nov 2016 19:08:11 +0000 (20:08 +0100)
committerGuillaume Munch <gm@lyx.org>
Sun, 20 Nov 2016 23:08:11 +0000 (00:08 +0100)
commitffb865d6e82fccdaa64d5e0aa4e3beea3fcad003
tree62d74d906dbf9b85824309876afab4f865d935ef
parenta9eb87a89d2ba1a492f2a01fc92e360e056bf2d6
Clean up and fixes to fractions metrics and drawing

* Factor code for easier maintainance.

* Avoid computing metrics several times. This duplication explained the
  exponential blowup during the metrics phase for nested fractions (see
  b2b87330). This happened in particular when using lyxproofs which heavily uses
  nested \dfracs for on-screen drawing.

* Call MetricsBase::changeScript instead of MetricsBase::changeFrac for
  \nicefrac and \unitfrac.
src/mathed/InsetMathFrac.cpp