]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_envinset.C
Fix to bug 2362: Deleting superscript also deletes subscript.
[lyx.git] / src / mathed / math_envinset.C
index e92fd99e37f30348716849c7ed11fcdde2be4aa4..14942be2b16635486096c4a8afbb1590d5a4cf5f 100644 (file)
@@ -16,6 +16,8 @@
 #include "math_streamstr.h"
 #include "support/std_ostream.h"
 
+
+using std::string;
 using std::auto_ptr;
 
 
@@ -24,7 +26,7 @@ MathEnvInset::MathEnvInset(string const & name)
 {}
 
 
-auto_ptr<InsetBase> MathEnvInset::clone() const
+auto_ptr<InsetBase> MathEnvInset::doClone() const
 {
        return auto_ptr<InsetBase>(new MathEnvInset(*this));
 }
@@ -32,9 +34,9 @@ auto_ptr<InsetBase> MathEnvInset::clone() const
 
 void MathEnvInset::metrics(MetricsInfo & mi, Dimension & dim) const
 {
-       cell(0).metrics(mi, dim_);
-       metricsMarkers();
-       dim = dim_;
+       cell(0).metrics(mi, dim);
+       metricsMarkers(dim);
+       dim_ = dim;
 }