X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathFontOld.C;h=21c8e17bd095cf0a7e4b1d8ecfe7d0fa951873bf;hb=e53e4d06726919c0fbf386bbe8f9d62a640b74d7;hp=a78e4e77d214d99c510d80c2c1531a18cb2ceb6c;hpb=de6418f37765fe452f135f96dee6d49897bff215;p=lyx.git diff --git a/src/mathed/InsetMathFontOld.C b/src/mathed/InsetMathFontOld.C index a78e4e77d2..21c8e17bd0 100644 --- a/src/mathed/InsetMathFontOld.C +++ b/src/mathed/InsetMathFontOld.C @@ -36,12 +36,15 @@ auto_ptr InsetMathFontOld::doClone() const } -void InsetMathFontOld::metrics(MetricsInfo & mi, Dimension & dim) const +bool InsetMathFontOld::metrics(MetricsInfo & mi, Dimension & dim) const { FontSetChanger dummy(mi.base, key_->name.c_str()); cell(0).metrics(mi, dim); metricsMarkers(dim); + if (dim_ == dim) + return false; dim_ = dim; + return true; }