]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_envinset.C
Andreas' patch to prevent crash on click on previewd inset
[lyx.git] / src / mathed / math_envinset.C
index 2f10a1c5df4abca9168758a8afe124f386b5f4cb..14942be2b16635486096c4a8afbb1590d5a4cf5f 100644 (file)
@@ -26,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));
 }
@@ -34,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;
 }