X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fmath_rootinset.C;h=bf3c211f94f9dbf12d1effc501aa81dad24ce1f3;hb=6aa8d56bddcb29d2c266dc520a4e725958c31db1;hp=2a7185895da503e2a191bdedf227d855455f4927;hpb=2b8ef58dc021912b2862328b9000cfe37578ea37;p=lyx.git diff --git a/src/mathed/math_rootinset.C b/src/mathed/math_rootinset.C index 2a7185895d..bf3c211f94 100644 --- a/src/mathed/math_rootinset.C +++ b/src/mathed/math_rootinset.C @@ -17,7 +17,7 @@ #include "math_rootinset.h" #include "math_mathmlstream.h" -#include "Painter.h" +#include "frontends/Painter.h" using std::max; @@ -34,7 +34,7 @@ MathInset * MathRootInset::clone() const } -void MathRootInset::metrics(MathMetricsInfo const & mi) const +void MathRootInset::metrics(MathMetricsInfo & mi) const { MathNestInset::metrics(mi); ascent_ = max(xcell(0).ascent() + 5, xcell(1).ascent()) + 2; @@ -43,7 +43,7 @@ void MathRootInset::metrics(MathMetricsInfo const & mi) const } -void MathRootInset::draw(Painter & pain, int x, int y) const +void MathRootInset::draw(MathPainterInfo & pain, int x, int y) const { int const w = xcell(0).width(); // the "exponent" @@ -59,7 +59,7 @@ void MathRootInset::draw(Painter & pain, int x, int y) const xp[2] = x + w; yp[2] = y + d; xp[3] = x + w - 2; yp[3] = y + (d - a)/2 + 2; xp[4] = x; yp[4] = y + (d - a)/2 + 2; - pain.lines(xp, yp, 5, LColor::math); + pain.pain.lines(xp, yp, 5, LColor::math); }