]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_substackinset.C
float2string #4 (Spacing)
[lyx.git] / src / mathed / math_substackinset.C
index 08f425e79571cdd931dd56bbc46cfd7e9da2aca9..6a288af21b3baccc48de603b3b78ef0f3b8853d1 100644 (file)
@@ -11,6 +11,7 @@
 #include <config.h>
 
 #include "math_substackinset.h"
+#include "math_data.h"
 #include "math_mathmlstream.h"
 #include "support/std_ostream.h"
 
@@ -22,7 +23,7 @@ MathSubstackInset::MathSubstackInset()
 {}
 
 
-auto_ptr<InsetBase> MathSubstackInset::clone() const
+auto_ptr<InsetBase> MathSubstackInset::doClone() const
 {
        return auto_ptr<InsetBase>(new MathSubstackInset(*this));
 }
@@ -32,19 +33,17 @@ void MathSubstackInset::metrics(MetricsInfo & mi, Dimension & dim) const
 {
        if (mi.base.style == LM_ST_DISPLAY) {
                StyleChanger dummy(mi.base, LM_ST_TEXT);
-               MathGridInset::metrics(mi);
+               MathGridInset::metrics(mi, dim);
        } else {
-               MathGridInset::metrics(mi);
+               MathGridInset::metrics(mi, dim);
        }
-       metricsMarkers();
-       dim = dim_;
+       dim_ = dim;
 }
 
 
 void MathSubstackInset::draw(PainterInfo & pi, int x, int y) const
 {
        MathGridInset::draw(pi, x + 1, y);
-       drawMarkers(pi, x, y);
 }