]> git.lyx.org Git - features.git/blobdiff - src/mathed/math_fracinset.C
- remove MathStyles cache from those insets that don't need it
[features.git] / src / mathed / math_fracinset.C
index e25adc5c0eb821fab3635623fc053e826f3e70bf..4a4cd0ef64bacb46495ab1ad3304ef49e724384c 100644 (file)
@@ -19,12 +19,12 @@ MathInset * MathFracInset::clone() const
 }
 
 
-void MathFracInset::metrics(MathMetricsInfo const & st) const
+void MathFracInset::metrics(MathMetricsInfo const & mi) const
 {
-       size_    = st;
-       smallerStyleFrac(size_);
-       xcell(0).metrics(size_);
-       xcell(1).metrics(size_);
+       MathMetricsInfo m = mi;
+       smallerStyleFrac(m);
+       xcell(0).metrics(m);
+       xcell(1).metrics(m);
        width_   = std::max(xcell(0).width(), xcell(1).width()) + 4; 
        ascent_  = xcell(0).height() + 4 + 5;
        descent_ = xcell(1).height() + 4 - 5;