]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathAMSArray.cpp
Simplify Changers interface
[lyx.git] / src / mathed / InsetMathAMSArray.cpp
index 2ed4f2017def5b8a5cca04b395203a59717ecc36..24a1fef7de5943fbb7303346b6c0a1a5cfb066a3 100644 (file)
@@ -85,8 +85,7 @@ char const * InsetMathAMSArray::name_right() const
 
 void InsetMathAMSArray::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);
 }
 
@@ -98,8 +97,7 @@ void InsetMathAMSArray::draw(PainterInfo & pi, int x, int y) const
        // Drawing the deco after changeStyle does not work
        mathed_draw_deco(pi, x + 1, yy, 5, dim.height(), from_ascii(name_left()));
        mathed_draw_deco(pi, x + dim.width() - 8, yy, 5, dim.height(), from_ascii(name_right()));
-       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);
 }