]> git.lyx.org Git - features.git/blobdiff - src/mathed/InsetMathArray.cpp
Fix broken Apple speller interface
[features.git] / src / mathed / InsetMathArray.cpp
index 727d45998b3623e9dd38b181359d5a70db8f1b1e..2815dc9612b06b87ee7e8faae344131cc782bbdc 100644 (file)
@@ -74,22 +74,21 @@ Inset * InsetMathArray::clone() const
 
 void InsetMathArray::metrics(MetricsInfo & mi, Dimension & dim) const
 {
-       Changer dummy =
-               mi.base.changeStyle(LM_ST_TEXT, mi.base.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);
-       Changer dummy =
-               pi.base.changeStyle(LM_ST_TEXT, pi.base.style == LM_ST_DISPLAY);
+       Changer dummy2 = pi.base.changeEnsureMath();
+       Changer dummy = pi.base.changeArray();
        InsetMathGrid::draw(pi, x, y);
 }
 
 
-void InsetMathArray::write(WriteStream & os) const
+void InsetMathArray::write(TeXMathStream & os) const
 {
        MathEnsurer ensurer(os);