X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathOverset.cpp;h=cea8840926ae6ef7ccae44dedf55d2668920ebc5;hb=1f352b390c897d583bffaad695c04b613b88a139;hp=d2044a1bec396f35576075dc11082aa779cc1225;hpb=e2bc7ffae3eb387661064be8b9dc927742f9e7e8;p=lyx.git diff --git a/src/mathed/InsetMathOverset.cpp b/src/mathed/InsetMathOverset.cpp index d2044a1bec..cea8840926 100644 --- a/src/mathed/InsetMathOverset.cpp +++ b/src/mathed/InsetMathOverset.cpp @@ -11,11 +11,13 @@ #include #include "InsetMathOverset.h" + #include "MathData.h" #include "MathStream.h" #include "Cursor.h" #include "LaTeXFeatures.h" +#include "MetricsInfo.h" using namespace std; @@ -29,6 +31,7 @@ Inset * InsetMathOverset::clone() const void InsetMathOverset::metrics(MetricsInfo & mi, Dimension & dim) const { + Changer dummy2 = mi.base.changeEnsureMath(); Dimension dim1; cell(1).metrics(mi, dim1); Changer dummy = mi.base.changeFrac(); @@ -37,12 +40,12 @@ void InsetMathOverset::metrics(MetricsInfo & mi, Dimension & dim) const dim.wid = max(dim0.width(), dim1.wid) + 4; dim.asc = dim1.asc + dim0.height() + 4; dim.des = dim1.des; - metricsMarkers(dim); } void InsetMathOverset::draw(PainterInfo & pi, int x, int y) const { + Changer dummy2 = pi.base.changeEnsureMath(); Dimension const dim = dimension(*pi.base.bv); Dimension const & dim0 = cell(0).dimension(*pi.base.bv); Dimension const & dim1 = cell(1).dimension(*pi.base.bv); @@ -51,7 +54,6 @@ void InsetMathOverset::draw(PainterInfo & pi, int x, int y) const cell(1).draw(pi, m - dim1.wid / 2, y); Changer dummy = pi.base.changeFrac(); cell(0).draw(pi, m - dim0.width() / 2, yo); - drawMarkers(pi, x, y); }