]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_makeboxinset.C
Fix to bug 2362: Deleting superscript also deletes subscript.
[lyx.git] / src / mathed / math_makeboxinset.C
index 7154dfff7acb97d713a6a9144e19a2307f8b2fbc..a3d6d4b480b07b0a1875c6ff541c3089b38063b2 100644 (file)
@@ -25,7 +25,7 @@ MathMakeboxInset::MathMakeboxInset()
 {}
 
 
-auto_ptr<InsetBase> MathMakeboxInset::clone() const
+auto_ptr<InsetBase> MathMakeboxInset::doClone() const
 {
        return auto_ptr<InsetBase>(new MathMakeboxInset(*this));
 }
@@ -65,6 +65,7 @@ void MathMakeboxInset::draw(PainterInfo & pi, int x, int y) const
        x += w_ + 2;
 
        cell(2).draw(pi, x, y);
+       setPosCache(pi, x, y);
 }