X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathLefteqn.cpp;h=f66c815179365d9e443ec006f2a170be00e5e573;hb=5e0121cf5854a2a0039e6cb4970aeddb18bd4b23;hp=4122d781f9afa264bcaee522d23dcf4cdb95eb99;hpb=f497296c30e6da2f97b16da8ad1c9e96feffb16b;p=lyx.git diff --git a/src/mathed/InsetMathLefteqn.cpp b/src/mathed/InsetMathLefteqn.cpp index 4122d781f9..f66c815179 100644 --- a/src/mathed/InsetMathLefteqn.cpp +++ b/src/mathed/InsetMathLefteqn.cpp @@ -11,39 +11,30 @@ #include #include "InsetMathLefteqn.h" -#include "MathData.h" -#include "support/std_ostream.h" - -namespace lyx { +#include "support/docstream.h" -using std::string; -using std::auto_ptr; - +namespace lyx { InsetMathLefteqn::InsetMathLefteqn() : InsetMathNest(1) {} -auto_ptr InsetMathLefteqn::doClone() const +Inset * InsetMathLefteqn::clone() const { - return auto_ptr(new InsetMathLefteqn(*this)); + return new InsetMathLefteqn(*this); } -bool InsetMathLefteqn::metrics(MetricsInfo & mi, Dimension & dim) const +void InsetMathLefteqn::metrics(MetricsInfo & mi, Dimension & dim) const { cell(0).metrics(mi, dim); dim.asc += 2; dim.des += 2; dim.wid = 4; metricsMarkers(dim); - if (dim_ == dim) - return false; - dim_ = dim; - return true; }