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