]> git.lyx.org Git - features.git/blobdiff - src/mathed/math_funcliminset.C
- remove MathStyles cache from those insets that don't need it
[features.git] / src / mathed / math_funcliminset.C
index 2788b420516a14821675a29966394e8965d655de..9939eaf494bfca1c6b0e667c974252476caadb49 100644 (file)
@@ -19,7 +19,7 @@ MathInset * MathFuncLimInset::clone() const
 
 bool MathFuncLimInset::isScriptable() const
 {
-       return size_.style == LM_ST_DISPLAY;
+       return mi_.style == LM_ST_DISPLAY;
 }
 
 
@@ -35,11 +35,10 @@ void MathFuncLimInset::writeNormal(ostream & os) const
 }
 
 
-void MathFuncLimInset::metrics(MathMetricsInfo const & st) const
+void MathFuncLimInset::metrics(MathMetricsInfo const & mi) const
 {
-       size_ = st;
-       mathed_string_dim(LM_TC_TEXTRM, size_, sym_->name,
-               ascent_, descent_, width_);
+       mi_ = mi;
+       mathed_string_dim(LM_TC_TEXTRM, mi_, sym_->name, ascent_, descent_, width_);
 }
 
 
@@ -47,5 +46,5 @@ void MathFuncLimInset::draw(Painter & pain, int x, int y) const
 {  
        xo(x);
        yo(y);
-       drawStr(pain, LM_TC_TEXTRM, size_, x, y, sym_->name);
+       drawStr(pain, LM_TC_TEXTRM, mi_, x, y, sym_->name);
 }