X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fmath_binaryopinset.C;h=aaac72a1867c19725d0153fe0f543e5af40dca4f;hb=4bc59f21015e9151841eea3733b97d25cd616fdc;hp=bd1300e07ef194649248817eea69ca21b132a234;hpb=7ea7dabed1b72cc25dcbdc482ac006f2b61dacfd;p=lyx.git diff --git a/src/mathed/math_binaryopinset.C b/src/mathed/math_binaryopinset.C index bd1300e07e..aaac72a186 100644 --- a/src/mathed/math_binaryopinset.C +++ b/src/mathed/math_binaryopinset.C @@ -5,7 +5,7 @@ #endif #include "math_binaryopinset.h" -#include "Painter.h" +#include "MathPainterInfo.h" #include "support/LOstream.h" #include "math_support.h" #include "math_mathmlstream.h" @@ -20,7 +20,7 @@ MathBinaryOpInset::MathBinaryOpInset(char op) MathInset * MathBinaryOpInset::clone() const -{ +{ return new MathBinaryOpInset(*this); } @@ -31,7 +31,7 @@ int MathBinaryOpInset::opwidth() const } -void MathBinaryOpInset::metrics(MathMetricsInfo const & mi) const +void MathBinaryOpInset::metrics(MathMetricsInfo & mi) const { mi_ = mi; xcell(0).metrics(mi); @@ -42,11 +42,11 @@ void MathBinaryOpInset::metrics(MathMetricsInfo const & mi) const } -void MathBinaryOpInset::draw(Painter & pain, int x, int y) const -{ - xcell(0).draw(pain, x, y); +void MathBinaryOpInset::draw(MathPainterInfo & pain, int x, int y) const +{ + xcell(0).draw(pain, x, y); drawChar(pain, LM_TC_CONST, mi_, x + xcell(0).width() , y, op_); - xcell(1).draw(pain, x + width() - xcell(1).width(), y); + xcell(1).draw(pain, x + width() - xcell(1).width(), y); }