]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_boxinset.C
several smallish changes/bugfixes/left overs from Porto
[lyx.git] / src / mathed / math_boxinset.C
index 8065cd136dc16351d3b7748feec6cb69942f8130..3d5f14b6adc567282a8dd5dc285795b90172d518 100644 (file)
@@ -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);
 }