X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathPar.cpp;h=38fc9bfc43be051cf2cb949a6bfa382dbc85b8f4;hb=12314897982e07afd8926c997f66d7bb08e7e1fd;hp=4fef89efe3925a0ec2b617c28bfe811c9ceb3364;hpb=31059d1741933d95403e7f07ed033cae482f778b;p=lyx.git diff --git a/src/mathed/InsetMathPar.cpp b/src/mathed/InsetMathPar.cpp index 4fef89efe3..38fc9bfc43 100644 --- a/src/mathed/InsetMathPar.cpp +++ b/src/mathed/InsetMathPar.cpp @@ -18,25 +18,16 @@ namespace lyx { - -using std::auto_ptr; - - InsetMathPar::InsetMathPar(MathData const & ar) { cells_[0] = ar; } -bool InsetMathPar::metrics(MetricsInfo & mi, Dimension & dim) const +void InsetMathPar::metrics(MetricsInfo & mi, Dimension & dim) const { - dim = dim_; FontSetChanger dummy1(mi.base, "textnormal"); - InsetMathGrid::metrics(mi); - if (dim_ == dim) - return false; - dim = dim_; - return true; + InsetMathGrid::metrics(mi, dim); } @@ -60,9 +51,9 @@ void InsetMathPar::infoize(odocstream & os) const } -auto_ptr InsetMathPar::doClone() const +Inset * InsetMathPar::clone() const { - return auto_ptr(new InsetMathPar(*this)); + return new InsetMathPar(*this); }