]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathComment.cpp
* dynamic macros as described in http://1stein.org/download/dynmacro.pdf
[lyx.git] / src / mathed / InsetMathComment.cpp
index 7ecdc2da2c19ca11d72db1571851f0989917c2c5..4648ba1f17bcf6795ffe71e1600e4dd33e776ac4 100644 (file)
@@ -42,7 +42,8 @@ void InsetMathComment::metrics(MetricsInfo & mi, Dimension & dim) const
 {
        cell(0).metrics(mi, dim);
        metricsMarkers(dim);
-       dim_ = dim;
+       // Cache the inset dimension. 
+       setDimCache(mi, dim);
 }