X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathFont.cpp;h=b6af0679c7b69622f4195029c1f11d24e842765c;hb=237c132c1e6fc720b87f2fea6deb18a8395cbe0a;hp=bfeeeff3977120bc30636c6f8b59481b614047aa;hpb=32871c1284f15265f652ff01c438e539a7c8181f;p=lyx.git diff --git a/src/mathed/InsetMathFont.cpp b/src/mathed/InsetMathFont.cpp index bfeeeff397..b6af0679c7 100644 --- a/src/mathed/InsetMathFont.cpp +++ b/src/mathed/InsetMathFont.cpp @@ -20,17 +20,14 @@ namespace lyx { -using std::auto_ptr; - - InsetMathFont::InsetMathFont(latexkeys const * key) : InsetMathNest(1), key_(key) {} -auto_ptr InsetMathFont::doClone() const +Inset * InsetMathFont::clone() const { - return auto_ptr(new InsetMathFont(*this)); + return new InsetMathFont(*this); } @@ -44,15 +41,12 @@ InsetMath::mode_type InsetMathFont::currentMode() const } -bool InsetMathFont::metrics(MetricsInfo & mi, Dimension & dim) const +void InsetMathFont::metrics(MetricsInfo & mi, Dimension & dim) const { FontSetChanger dummy(mi.base, key_->name); cell(0).metrics(mi, dim); metricsMarkers(dim); - if (dim_ == dim) - return false; dim_ = dim; - return true; }