[LyX/master] Fixup f96b99dc: do not initialize cache too late
Jean-Marc Lasgouttes
lasgouttes at lyx.org
Fri Oct 2 09:52:10 UTC 2020
commit 4d9a2c2e59889c6a7388024f0e103012b115cc95
Author: Jean-Marc Lasgouttes <lasgouttes at lyx.org>
Date: Fri Oct 2 12:17:57 2020 +0200
Fixup f96b99dc: do not initialize cache too late
---
src/mathed/InsetMathScript.cpp | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/mathed/InsetMathScript.cpp b/src/mathed/InsetMathScript.cpp
index 62aab03..cbef2fa 100644
--- a/src/mathed/InsetMathScript.cpp
+++ b/src/mathed/InsetMathScript.cpp
@@ -271,6 +271,10 @@ MathClass InsetMathScript::mathClass() const
void InsetMathScript::metrics(MetricsInfo & mi, Dimension & dim) const
{
+ // we store this, because it is much easier
+ has_limits_ = hasLimits(mi.base.font);
+
+ // Compute metrics of the available cells
Dimension dim0;
Dimension dim1;
Dimension dim2;
@@ -284,8 +288,6 @@ void InsetMathScript::metrics(MetricsInfo & mi, Dimension & dim) const
if (nargs() > 2)
cell(2).metrics(mi, dim2, !has_limits_);
}
- // we store this, because it is much easier
- has_limits_ = hasLimits(mi.base.font);
dim.wid = 0;
BufferView & bv = *mi.base.bv;
More information about the lyx-cvs
mailing list