+auto_ptr<InsetBase> MathSubstackInset::doClone() const
+{
+ return auto_ptr<InsetBase>(new MathSubstackInset(*this));
+}
+
+
+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, dim);
+ } else {
+ MathGridInset::metrics(mi, dim);
+ }
+ dim_ = dim;
+}
+
+
+void MathSubstackInset::draw(PainterInfo & pi, int x, int y) const