]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathFontOld.C
Account for kerning when positioning scripts in the MathFontOld and
[lyx.git] / src / mathed / InsetMathFontOld.C
index a78e4e77d214d99c510d80c2c1531a18cb2ceb6c..21c8e17bd095cf0a7e4b1d8ecfe7d0fa951873bf 100644 (file)
@@ -36,12 +36,15 @@ auto_ptr<InsetBase> 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;
 }