X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathPar.cpp;h=38fc9bfc43be051cf2cb949a6bfa382dbc85b8f4;hb=12314897982e07afd8926c997f66d7bb08e7e1fd;hp=e0b6345bda513683c80d862a228468c9db122c1c;hpb=6e3a75969b97a5db4c80c46be49d4deb122abfe7;p=lyx.git diff --git a/src/mathed/InsetMathPar.cpp b/src/mathed/InsetMathPar.cpp index e0b6345bda..38fc9bfc43 100644 --- a/src/mathed/InsetMathPar.cpp +++ b/src/mathed/InsetMathPar.cpp @@ -11,32 +11,23 @@ #include #include "InsetMathPar.h" -#include "MathArray.h" +#include "MathData.h" #include "MathStream.h" #include "support/std_ostream.h" namespace lyx { - -using std::auto_ptr; - - -InsetMathPar::InsetMathPar(MathArray const & ar) +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); }