]> 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 efbfd4a43393986e99e4d5c760ca3e3c560e65e5..36c1c163506fbda5defb4a6e9f34c8500572380a 100644 (file)
@@ -49,7 +49,8 @@ void InsetMathBox::metrics(MetricsInfo & mi, Dimension & dim) const
        FontSetChanger dummy(mi.base, "textnormal");
        cell(0).metrics(mi, dim);
        metricsMarkers(dim);
-       dim_ = dim;
+       // Cache the inset dimension. 
+       setDimCache(mi, dim);
 }