]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathArray.cpp
Simplify Changers interface
[lyx.git] / src / mathed / InsetMathArray.cpp
index cc007e97a5dc2659c970b22acbd2b3be416137d3..ad476ae17f46e23c1dcbcccbb949897c2d3b4f16 100644 (file)
@@ -74,8 +74,7 @@ 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 dummy = mi.base.changeArray();
        InsetMathGrid::metrics(mi, dim);
 }
 
@@ -83,8 +82,7 @@ void InsetMathArray::metrics(MetricsInfo & mi, Dimension & dim) const
 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 dummy = pi.base.changeArray();
        InsetMathGrid::draw(pi, x, y);
 }