X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fmath_boxinset.C;h=3d5f14b6adc567282a8dd5dc285795b90172d518;hb=c649284611c4198c9d70be8a16d153cdf1ec0700;hp=8065cd136dc16351d3b7748feec6cb69942f8130;hpb=f4892a2d334b8421999b03f70b962a0aaeab018d;p=lyx.git diff --git a/src/mathed/math_boxinset.C b/src/mathed/math_boxinset.C index 8065cd136d..3d5f14b6ad 100644 --- a/src/mathed/math_boxinset.C +++ b/src/mathed/math_boxinset.C @@ -41,8 +41,16 @@ void MathBoxInset::rebreak() } -void MathBoxInset::draw(Painter & pain, int x, int y) const +void MathBoxInset::metrics(MathMetricsInfo & mi) const { - MathGridInset::draw(pain, x, y); - mathed_draw_framebox(pain, x, y, this); + MathFontSetChanger dummy(mi.base, "textnormal"); + MathGridInset::metrics(mi); +} + + +void MathBoxInset::draw(MathPainterInfo & pi, int x, int y) const +{ + MathFontSetChanger dummy(pi.base, "textnormal"); + MathGridInset::draw(pi, x, y); + mathed_draw_framebox(pi, x, y, this); }