]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathOverset.cpp
When cancelling saving of a children, cancel the whole process.
[lyx.git] / src / mathed / InsetMathOverset.cpp
index b791c2482f99ceb232220ecb040ecc379528096b..a69c1e0fcc5d1cdc9f4c817eb80c28d31dcbe7b1 100644 (file)
@@ -31,29 +31,29 @@ 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();
+       Changer dummy = mi.base.changeScript();
        Dimension dim0;
        cell(0).metrics(mi, dim0);
        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);
        int m  = x + dim.wid / 2;
        int yo = y - dim1.asc - dim0.des - 1;
        cell(1).draw(pi, m - dim1.wid / 2, y);
-       Changer dummy = pi.base.changeFrac();
+       Changer dummy = pi.base.changeScript();
        cell(0).draw(pi, m - dim0.width() / 2, yo);
-       drawMarkers(pi, x, y);
 }