]> 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 cea8840926ae6ef7ccae44dedf55d2668920ebc5..a69c1e0fcc5d1cdc9f4c817eb80c28d31dcbe7b1 100644 (file)
@@ -34,7 +34,7 @@ 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;
@@ -52,7 +52,7 @@ void InsetMathOverset::draw(PainterInfo & pi, int x, int y) const
        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);
 }