]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_colorinset.C
get rid of broken_header.h and some unneeded tests
[lyx.git] / src / mathed / math_colorinset.C
index f4aa3481bfd886f14a23f82c160d9218e82eb1cb..4c48ea074560b866186a0dbd6290cc0a92c53172 100644 (file)
@@ -28,7 +28,7 @@ MathColorInset::MathColorInset(bool oldstyle)
 {}
 
 
-auto_ptr<InsetBase> MathColorInset::clone() const
+auto_ptr<InsetBase> MathColorInset::doClone() const
 {
        return auto_ptr<InsetBase>(new MathColorInset(*this));
 }
@@ -68,6 +68,7 @@ void MathColorInset::draw(PainterInfo & pi, int x, int y) const
        pi.base.font.setColor(lcolor.getFromGUIName(asString(cell(0))));
        cell(1).draw(pi, x, y);
        pi.base.font.setColor(origcol);
+       setPosCache(pi, x, y);
 }