]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathOverset.cpp
Fix drawing of empty boxes
[lyx.git] / src / mathed / InsetMathOverset.cpp
index b791c2482f99ceb232220ecb040ecc379528096b..cea8840926ae6ef7ccae44dedf55d2668920ebc5 100644 (file)
@@ -31,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();
@@ -39,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(mi, 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);
@@ -53,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);
 }