]> 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 e3c385abb3d88b3815733690df2cd6d46b776e78..4648ba1f17bcf6795ffe71e1600e4dd33e776ac4 100644 (file)
@@ -38,14 +38,12 @@ Inset * InsetMathComment::clone() const
 }
 
 
-bool InsetMathComment::metrics(MetricsInfo & mi, Dimension & dim) const
+void InsetMathComment::metrics(MetricsInfo & mi, Dimension & dim) const
 {
        cell(0).metrics(mi, dim);
        metricsMarkers(dim);
-       if (dim_ == dim)
-               return false;
-       dim_ = dim;
-       return true;
+       // Cache the inset dimension. 
+       setDimCache(mi, dim);
 }