]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_frameboxinset.C
fix #1073
[lyx.git] / src / mathed / math_frameboxinset.C
index 88f69a9957f8e9b1fd9550940cf3df4b0c6303c1..c2f804c2f80405ee72c1b9a76acefd490c206d35 100644 (file)
@@ -20,9 +20,9 @@ MathInset * MathFrameboxInset::clone() const
 }
 
 
-void MathFrameboxInset::metrics(MathMetricsInfo & mi) const
+void MathFrameboxInset::metrics(MetricsInfo & mi) const
 {
-       MathFontSetChanger dummy(mi.base, "textnormal");
+       FontSetChanger dummy(mi.base, "textnormal");
        w_ = mathed_char_width(mi.base.font, '[');
        MathNestInset::metrics(mi);
        dim_    = cell(0).dim();
@@ -33,11 +33,11 @@ void MathFrameboxInset::metrics(MathMetricsInfo & mi) const
 }
 
 
-void MathFrameboxInset::draw(MathPainterInfo & pi, int x, int y) const
+void MathFrameboxInset::draw(PainterInfo & pi, int x, int y) const
 {
-       MathFontSetChanger dummy(pi.base, "textnormal");
+       FontSetChanger dummy(pi.base, "textnormal");
        pi.pain.rectangle(x + 1, y - ascent() + 1, width() - 2, height() - 2,
-                       LColor::black);
+                       LColor::foreground);
        x += 5;
 
        drawStrBlack(pi, x, y, "[");