]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_substackinset.C
bug + spped fixes + small stuff
[lyx.git] / src / mathed / math_substackinset.C
index 08f425e79571cdd931dd56bbc46cfd7e9da2aca9..ce15a19a4887800ca0689bb1ef9d805fdf9ae6fe 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"
 
@@ -32,12 +33,12 @@ 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_;
+       metricsMarkers(dim);
+       dim_ = dim;
 }