X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fmath_substackinset.C;h=6a288af21b3baccc48de603b3b78ef0f3b8853d1;hb=701b99ecd70ac472aa53c8b2317af44def4f9670;hp=08f425e79571cdd931dd56bbc46cfd7e9da2aca9;hpb=236ea81bc5c0ce7101c9460d1ee97b8f3c9be9df;p=lyx.git diff --git a/src/mathed/math_substackinset.C b/src/mathed/math_substackinset.C index 08f425e795..6a288af21b 100644 --- a/src/mathed/math_substackinset.C +++ b/src/mathed/math_substackinset.C @@ -11,6 +11,7 @@ #include #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 MathSubstackInset::clone() const +auto_ptr MathSubstackInset::doClone() const { return auto_ptr(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); }