]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathXYMatrix.cpp
Simplify Changers interface
[lyx.git] / src / mathed / InsetMathXYMatrix.cpp
index 743c07ebd3fb2a0ea205e0a43c6a100fe9e21c84..5e3bdb5057e6333ed7a43774b285f580eee5712f 100644 (file)
@@ -49,8 +49,7 @@ int InsetMathXYMatrix::rowsep() const
 
 void InsetMathXYMatrix::metrics(MetricsInfo & mi, Dimension & dim) const
 {
-       FontInfo & f = mi.base.font;
-       Changer dummy = f.changeStyle(LM_ST_TEXT, f.style() == LM_ST_DISPLAY);
+       Changer dummy = mi.base.changeArray();
        InsetMathGrid::metrics(mi, dim);
 }
 
@@ -58,8 +57,7 @@ void InsetMathXYMatrix::metrics(MetricsInfo & mi, Dimension & dim) const
 void InsetMathXYMatrix::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 dummy = pi.base.changeArray();
        InsetMathGrid::draw(pi, x, y);
 }