]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathBox.cpp
last commit was incomplete... not sure how I managed this..
[lyx.git] / src / mathed / InsetMathBox.cpp
index 2ae756a520913b6214d71f6f1089c4df9fc6876e..36c1c163506fbda5defb4a6e9f34c8500572380a 100644 (file)
@@ -44,15 +44,13 @@ void InsetMathBox::normalize(NormalStream & os) const
 }
 
 
-bool InsetMathBox::metrics(MetricsInfo & mi, Dimension & dim) const
+void InsetMathBox::metrics(MetricsInfo & mi, Dimension & dim) const
 {
        FontSetChanger dummy(mi.base, "textnormal");
        cell(0).metrics(mi, dim);
        metricsMarkers(dim);
-       if (dim_ == dim)
-               return false;
-       dim_ = dim;
-       return true;
+       // Cache the inset dimension. 
+       setDimCache(mi, dim);
 }