-void MathBraceInset::draw(Painter & pain, int x, int y) const
-{
- drawChar(pain, LM_TC_TEX, mi_, x, y, '{');
- xcell(0).draw(pain, x + wid_, y);
- drawChar(pain, LM_TC_TEX, mi_, x + width_ - wid_, y, '}');
+void MathBraceInset::draw(MathPainterInfo & pi, int x, int y) const
+{
+ LyXFont font = pi.base.font;
+ font.setColor(LColor::latex);
+ drawChar(pi, font, x, y, '{');
+ xcell(0).draw(pi, x + wid_, y);
+ drawChar(pi, font, x + width_ - wid_, y, '}');