X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathXYArrow.cpp;h=3449271568c848eda98c56995d22f1ab1facf3dd;hb=7f17f13bfc2ad4e7cdd8ecfce23374e2b3d0c646;hp=fb0f30252dc4067fe46c7286297d76f56fd94379;hpb=f497296c30e6da2f97b16da8ad1c9e96feffb16b;p=lyx.git diff --git a/src/mathed/InsetMathXYArrow.cpp b/src/mathed/InsetMathXYArrow.cpp index fb0f30252d..3449271568 100644 --- a/src/mathed/InsetMathXYArrow.cpp +++ b/src/mathed/InsetMathXYArrow.cpp @@ -28,9 +28,9 @@ InsetMathXYArrow::InsetMathXYArrow() {} -std::auto_ptr InsetMathXYArrow::clone() const +std::auto_ptr InsetMathXYArrow::clone() const { - return std::auto_ptr(new InsetMathXYArrow(*this)); + return std::auto_ptr(new InsetMathXYArrow(*this)); } @@ -40,14 +40,14 @@ InsetMathXYMatrix const * InsetMathXYArrow::targetMatrix() const } -MathArray const & InsetMathXYArrow::targetCell() const +MathData const & InsetMathXYArrow::targetCell() const { #if 0 InsetMathXYMatrix const * p = targetMatrix(); int x = 0; int y = 0; - MathArray const & t = cell(0); - for (MathArray::const_iterator it = t.begin(); it != t.end(); ++it) { + MathData const & t = cell(0); + for (MathData::const_iterator it = t.begin(); it != t.end(); ++it) { switch ((*it)->getChar()) { case 'l': --x; break; case 'r': ++x; break; @@ -64,18 +64,18 @@ MathArray const & InsetMathXYArrow::targetCell() const } return p->cell(n); #else - static MathArray dummy; + static MathData dummy; return dummy; #endif } -MathArray const & InsetMathXYArrow::sourceCell() const +MathData const & InsetMathXYArrow::sourceCell() const { #if 0 return targetMatrix()->cell(mi_.idx); #else - static MathArray dummy; + static MathData dummy; return dummy; #endif } @@ -131,9 +131,9 @@ void InsetMathXYArrow::draw(PainterInfo & pi, int x, int y) const } else { pi.pain.text(x, y, "X"); - MathArray const & s = sourceCell(); - MathArray const & t = targetCell(); - pi.pain.line(s.xm(), s.ym(), t.xm(), t.ym(), LColor::math); + MathData const & s = sourceCell(); + MathData const & t = targetCell(); + pi.pain.line(s.xm(), s.ym(), t.xm(), t.ym(), Color::math); cell(1).draw(pi, (s.xm() + t.xm())/2, (s.ym() + t.ym())/2); }