X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fmath_macrotemplate.C;h=22186a52ee52fff2d81898f46f026ba39f9957a9;hb=46880e2b9b49632c56bab2377ce9a3c826cf8d1d;hp=7d518782d0ab8c32029740f034ddc11ab7b3d47c;hpb=06f9f0ea08ddcf13e99ea02cff21471aa2020c9e;p=lyx.git diff --git a/src/mathed/math_macrotemplate.C b/src/mathed/math_macrotemplate.C index 7d518782d0..22186a52ee 100644 --- a/src/mathed/math_macrotemplate.C +++ b/src/mathed/math_macrotemplate.C @@ -47,7 +47,7 @@ string const & MathMacroTemplate::name() const } -void MathMacroTemplate::metrics(MathMetricsInfo const & mi) const +void MathMacroTemplate::metrics(MathMetricsInfo & mi) const { xcell(0).metrics(mi); xcell(1).metrics(mi); @@ -57,14 +57,16 @@ void MathMacroTemplate::metrics(MathMetricsInfo const & mi) const } -void MathMacroTemplate::draw(Painter & pain, int x, int y) const +void MathMacroTemplate::draw(MathPainterInfo & pi, int x, int y) const { int const w0 = xcell(0).width(); int const w1 = xcell(1).width(); - xcell(0).draw(pain, x + 2, y + 1); - pain.rectangle(x, y - ascent() + 1, w0 + 4, height(), LColor::blue); - xcell(1).draw(pain, x + 8 + w0, y + 1); - pain.rectangle(x + w0 + 6 , y - ascent() + 1, w1 + 4, height(), LColor::blue); + xcell(0).draw(pi, x + 2, y + 1); + pi.pain.rectangle(x, y - ascent() + 1, w0 + 4, height(), + LColor::blue); + xcell(1).draw(pi, x + 8 + w0, y + 1); + pi.pain.rectangle(x + w0 + 6 , y - ascent() + 1, w1 + 4, + height(), LColor::blue); }