#include "InsetMathStackrel.h"
#include "MathData.h"
-#include "MathMLStream.h"
+#include "MathStream.h"
+
+
+namespace lyx {
using std::max;
}
-void InsetMathStackrel::metrics(MetricsInfo & mi, Dimension & dim) const
+bool InsetMathStackrel::metrics(MetricsInfo & mi, Dimension & dim) const
{
cell(1).metrics(mi);
FracChanger dummy(mi.base);
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;
}
{
os << "[stackrel " << cell(0) << ' ' << cell(1) << ']';
}
+
+
+} // namespace lyx