]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathXYArrow.cpp
Get package things working with modules prior to UI patch.
[lyx.git] / src / mathed / InsetMathXYArrow.cpp
index 1853c2e4d946ddee65b044afec0aea2306c88431..3449271568c848eda98c56995d22f1ab1facf3dd 100644 (file)
@@ -28,9 +28,9 @@ InsetMathXYArrow::InsetMathXYArrow()
 {}
 
 
-std::auto_ptr<InsetBase> InsetMathXYArrow::clone() const
+std::auto_ptr<Inset> InsetMathXYArrow::clone() const
 {
-       return std::auto_ptr<InsetBase>(new InsetMathXYArrow(*this));
+       return std::auto_ptr<Inset>(new InsetMathXYArrow(*this));
 }
 
 
@@ -133,7 +133,7 @@ void InsetMathXYArrow::draw(PainterInfo & pi, int x, int y) const
                pi.pain.text(x, y, "X");
                MathData const & s = sourceCell();
                MathData const & t = targetCell();
-               pi.pain.line(s.xm(), s.ym(), t.xm(), t.ym(), LColor::math);
+               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);
 
        }