]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathColor.C
Allows editing when the Prefs dialog is opened; fix bug 3140:
[lyx.git] / src / mathed / InsetMathColor.C
index 55d9c656cbadd3a4f962788bfc17ddd834326e1a..32d7c298818d82a14504d8376ae3c5367cb31a81 100644 (file)
@@ -41,11 +41,14 @@ auto_ptr<InsetBase> InsetMathColor::doClone() const
 }
 
 
-void InsetMathColor::metrics(MetricsInfo & mi, Dimension & dim) const
+bool InsetMathColor::metrics(MetricsInfo & mi, Dimension & dim) const
 {
        cell(0).metrics(mi, dim);
        metricsMarkers(dim);
+       if (dim_ == dim)
+               return false;
        dim_ = dim;
+       return true;
 }