]> git.lyx.org Git - features.git/blobdiff - src/mathed/math_macroarg.C
- remove MathStyles cache from those insets that don't need it
[features.git] / src / mathed / math_macroarg.C
index 6ed3e3e04a1468e88b592cb2fe8ed88db78b1437..77c817305fb26e9c7e0328f5b205e1727c2f471e 100644 (file)
@@ -35,15 +35,16 @@ void MathMacroArgument::write(MathWriteInfo & os) const
 }
 
 
-void MathMacroArgument::metrics(MathMetricsInfo const & st) const
+void MathMacroArgument::metrics(MathMetricsInfo const & mi) const
 {
+       mi_ = mi;
        if (expanded_) {
-               xcell(0).metrics(st);
+               xcell(0).metrics(mi_);
                width_   = xcell(0).width();
                ascent_  = xcell(0).ascent();
                descent_ = xcell(0).descent();
        } else
-               mathed_string_dim(LM_TC_TEX, size_, str_, ascent_, descent_, width_);
+               mathed_string_dim(LM_TC_TEX, mi_, str_, ascent_, descent_, width_);
 }
 
 
@@ -52,7 +53,7 @@ void MathMacroArgument::draw(Painter & pain, int x, int y) const
        if (expanded_)
                xcell(0).draw(pain, x, y);
        else
-               drawStr(pain, LM_TC_TEX, size_, x, y, str_);
+               drawStr(pain, LM_TC_TEX, mi_, x, y, str_);
 }