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 dummy2 = mi.base.changeEnsureMath();
+ Changer dummy = mi.base.changeArray();
InsetMathGrid::metrics(mi, dim);
}
void InsetMathAMSArray::draw(PainterInfo & pi, int x, int y) const
{
+ Changer dummy2 = pi.base.changeEnsureMath();
Dimension const dim = dimension(*pi.base.bv);
int const yy = y - dim.ascent();
// 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);
}