]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathUnderset.C
Allows editing when the Prefs dialog is opened; fix bug 3140:
[lyx.git] / src / mathed / InsetMathUnderset.C
index 3a4913b822da738105caff09fd9738583d08367d..f756a49f13ef2be153dfb2649dca177266761083 100644 (file)
@@ -12,7 +12,7 @@
 
 #include "InsetMathUnderset.h"
 #include "MathData.h"
-#include "MathMLStream.h"
+#include "MathStream.h"
 
 #include "cursor.h"
 #include "LaTeXFeatures.h"
@@ -31,7 +31,7 @@ auto_ptr<InsetBase> InsetMathUnderset::doClone() const
 }
 
 
-void InsetMathUnderset::metrics(MetricsInfo & mi, Dimension & dim) const
+bool InsetMathUnderset::metrics(MetricsInfo & mi, Dimension & dim) const
 {
        cell(1).metrics(mi);
        FracChanger dummy(mi.base);
@@ -40,7 +40,10 @@ void InsetMathUnderset::metrics(MetricsInfo & mi, Dimension & dim) const
        dim.asc = cell(1).ascent();
        dim.des = cell(1).descent() + cell(0).height() + 4;
        metricsMarkers(dim);
+       if (dim_ == dim)
+               return false;
        dim_ = dim;
+       return true;
 }