]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_funcliminset.C
preview as preview can...
[lyx.git] / src / mathed / math_funcliminset.C
index 5221bbab36827438ece0a342fea8d84d2705d8ab..c2826c6b5685f1a19eb44bc236410879842a13f3 100644 (file)
@@ -19,7 +19,7 @@ MathInset * MathFuncLimInset::clone() const
 
 bool MathFuncLimInset::isScriptable() const
 {
-       return mi_.style == LM_ST_DISPLAY;
+       return scriptable_;
 }
 
 
@@ -35,14 +35,14 @@ void MathFuncLimInset::normalize(NormalStream & os) const
 }
 
 
-void MathFuncLimInset::metrics(MathMetricsInfo const & mi) const
+void MathFuncLimInset::metrics(MathMetricsInfo & mi) const
 {
-       mi_ = mi;
-       mathed_string_dim(LM_TC_TEXTRM, mi_, name_, ascent_, descent_, width_);
+       scriptable_ =  (mi.base.style == LM_ST_DISPLAY);
+       mathed_string_dim(mi.base.font, name_, ascent_, descent_, width_);
 }
 
 
-void MathFuncLimInset::draw(Painter & pain, int x, int y) const
-{  
-       drawStr(pain, LM_TC_TEXTRM, mi_, x, y, name_);
+void MathFuncLimInset::draw(MathPainterInfo & pi, int x, int y) const
+{
+       drawStrBlack(pi, x, y, name_);
 }