X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathLefteqn.cpp;h=ec4fe7e9b0f74f6927c42cb7f333665b13ca2795;hb=89342f2946abd5d01b019a729d1f160b0c9d3d50;hp=44e4412b81c50e195fb624f3ca4ff79f497d1fb6;hpb=ed858d73e57ce7aa89e38c1bc4d799362edb0227;p=lyx.git diff --git a/src/mathed/InsetMathLefteqn.cpp b/src/mathed/InsetMathLefteqn.cpp index 44e4412b81..ec4fe7e9b0 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,14 +11,14 @@ #include #include "InsetMathLefteqn.h" -#include "MathData.h" -#include "support/std_ostream.h" + +#include "support/docstream.h" namespace lyx { -InsetMathLefteqn::InsetMathLefteqn() - : InsetMathNest(1) +InsetMathLefteqn::InsetMathLefteqn(Buffer * buf) + : InsetMathNest(buf, 1) {} @@ -28,17 +28,13 @@ Inset * InsetMathLefteqn::clone() const } -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; }