]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathArray.cpp
Improve the list of equations
[lyx.git] / src / mathed / InsetMathArray.cpp
index cc007e97a5dc2659c970b22acbd2b3be416137d3..eeea831d05e5c2d7f2279a88c6aa7a3553ba9c00 100644 (file)
@@ -74,17 +74,16 @@ Inset * InsetMathArray::clone() const
 
 void InsetMathArray::metrics(MetricsInfo & mi, Dimension & dim) const
 {
-       FontInfo & f = mi.base.font;
-       Changer dummy = f.changeStyle(LM_ST_TEXT, f.style() == LM_ST_DISPLAY);
+       Changer dummy2 = mi.base.changeEnsureMath();
+       Changer dummy = mi.base.changeArray();
        InsetMathGrid::metrics(mi, dim);
 }
 
 
 void InsetMathArray::draw(PainterInfo & pi, int x, int y) const
 {
-       setPosCache(pi, x, y);
-       FontInfo & f = pi.base.font;
-       Changer dummy = f.changeStyle(LM_ST_TEXT, f.style() == LM_ST_DISPLAY);
+       Changer dummy2 = pi.base.changeEnsureMath();
+       Changer dummy = pi.base.changeArray();
        InsetMathGrid::draw(pi, x, y);
 }