]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_substackinset.C
Fix math cursor positioning bug
[lyx.git] / src / mathed / math_substackinset.C
index ce15a19a4887800ca0689bb1ef9d805fdf9ae6fe..b60e4898cc7802231d9e7169a14b678710897a29 100644 (file)
@@ -10,6 +10,7 @@
 
 #include <config.h>
 
+#include "LaTeXFeatures.h"
 #include "math_substackinset.h"
 #include "math_data.h"
 #include "math_mathmlstream.h"
@@ -23,7 +24,7 @@ MathSubstackInset::MathSubstackInset()
 {}
 
 
-auto_ptr<InsetBase> MathSubstackInset::clone() const
+auto_ptr<InsetBase> MathSubstackInset::doClone() const
 {
        return auto_ptr<InsetBase>(new MathSubstackInset(*this));
 }
@@ -37,7 +38,6 @@ void MathSubstackInset::metrics(MetricsInfo & mi, Dimension & dim) const
        } else {
                MathGridInset::metrics(mi, dim);
        }
-       metricsMarkers(dim);
        dim_ = dim;
 }
 
@@ -45,7 +45,6 @@ void MathSubstackInset::metrics(MetricsInfo & mi, Dimension & dim) const
 void MathSubstackInset::draw(PainterInfo & pi, int x, int y) const
 {
        MathGridInset::draw(pi, x + 1, y);
-       drawMarkers(pi, x, y);
 }
 
 
@@ -77,3 +76,10 @@ void MathSubstackInset::maple(MapleStream & os) const
        MathGridInset::maple(os);
        os << ')';
 }
+
+
+void MathSubstackInset::validate(LaTeXFeatures & features) const
+{
+       features.require("amsmath");
+       MathGridInset::validate(features);
+}