]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_boxinset.C
Fix to bug 2362: Deleting superscript also deletes subscript.
[lyx.git] / src / mathed / math_boxinset.C
index ca053c422e4bd1f6ef404a9fac8e0142672c9034..a5af582e8cfdaeac15de34ccc322569a43243128 100644 (file)
@@ -25,7 +25,7 @@ MathBoxInset::MathBoxInset(string const & name)
 {}
 
 
-auto_ptr<InsetBase> MathBoxInset::clone() const
+auto_ptr<InsetBase> MathBoxInset::doClone() const
 {
        return auto_ptr<InsetBase>(new MathBoxInset(*this));
 }
@@ -48,9 +48,9 @@ void MathBoxInset::normalize(NormalStream & os) const
 void MathBoxInset::metrics(MetricsInfo & mi, Dimension & dim) const
 {
        FontSetChanger dummy(mi.base, "textnormal");
-       cell(0).metrics(mi, dim_);
-       metricsMarkers();
-       dim = dim_;
+       cell(0).metrics(mi, dim);
+       metricsMarkers(dim);
+       dim_ = dim;
 }