X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathBox.cpp;h=36c1c163506fbda5defb4a6e9f34c8500572380a;hb=58ab972f714309aa87e7d956ceda00e18337875f;hp=efbfd4a43393986e99e4d5c760ca3e3c560e65e5;hpb=237c132c1e6fc720b87f2fea6deb18a8395cbe0a;p=lyx.git diff --git a/src/mathed/InsetMathBox.cpp b/src/mathed/InsetMathBox.cpp index efbfd4a433..36c1c16350 100644 --- a/src/mathed/InsetMathBox.cpp +++ b/src/mathed/InsetMathBox.cpp @@ -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); }