]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_unknowninset.C
Fix to bug 2362: Deleting superscript also deletes subscript.
[lyx.git] / src / mathed / math_unknowninset.C
index c304b4b9e2a9f7e2bd8264b12fc23784a1c5beaf..12a29cab568d8a34ba62b86d2c54640fd87db1a6 100644 (file)
@@ -25,7 +25,7 @@ MathUnknownInset::MathUnknownInset(string const & nm, bool final, bool black)
 {}
 
 
-auto_ptr<InsetBase> MathUnknownInset::clone() const
+auto_ptr<InsetBase> MathUnknownInset::doClone() const
 {
        return auto_ptr<InsetBase>(new MathUnknownInset(*this));
 }
@@ -62,8 +62,7 @@ void MathUnknownInset::draw(PainterInfo & pi, int x, int y) const
                drawStrBlack(pi, x, y, name_);
        else
                drawStrRed(pi, x, y, name_);
-       xo_ = x;
-       yo_ = y;
+       setPosCache(pi, x, y);
 }