X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathLefteqn.cpp;h=176c7431cf5f53edc6ec079087d5690a5652ed5e;hb=02e82157ec583c3900e359de86be79fac6512387;hp=6227dbf32c94a8794b1d9af2b9c5b72cb72517b5;hpb=6e3a75969b97a5db4c80c46be49d4deb122abfe7;p=lyx.git diff --git a/src/mathed/InsetMathLefteqn.cpp b/src/mathed/InsetMathLefteqn.cpp index 6227dbf32c..176c7431cf 100644 --- a/src/mathed/InsetMathLefteqn.cpp +++ b/src/mathed/InsetMathLefteqn.cpp @@ -3,7 +3,7 @@ * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * - * \author André Pönitz + * \author André Pönitz * * Full author contact details are available in file CREDITS. */ @@ -11,39 +11,30 @@ #include #include "InsetMathLefteqn.h" -#include "MathArray.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) +InsetMathLefteqn::InsetMathLefteqn(Buffer * buf) + : InsetMathNest(buf, 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; + metricsMarkers(mi, dim); }