]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_binominset.C
Fix reading of math macros
[lyx.git] / src / mathed / math_binominset.C
index f430470898f0c456e2ea1229981a237602d22b15..5b6fdce321e3004d179fd6bfcc17bf0f10a02b0e 100644 (file)
@@ -37,7 +37,7 @@ int MathBinomInset::dw() const
 
 void MathBinomInset::metrics(MathMetricsInfo & mi) const
 {
-       MathScriptChanger(mi.base);
+       MathScriptChanger dummy(mi.base);
        cell(0).metrics(mi);
        cell(1).metrics(mi);
        dim_.a = cell(0).height() + 4 + 5;
@@ -49,7 +49,7 @@ void MathBinomInset::metrics(MathMetricsInfo & mi) const
 void MathBinomInset::draw(MathPainterInfo & pi, int x, int y) const
 {
        int m = x + width() / 2;
-       MathScriptChanger(pi.base);
+       MathScriptChanger dummy(pi.base);
        cell(0).draw(pi, m - cell(0).width() / 2, y - cell(0).descent() - 3 - 5);
        cell(1).draw(pi, m - cell(1).width() / 2, y + cell(1).ascent()  + 3 - 5);
        mathed_draw_deco(pi, x, y - ascent(), dw(), height(), "(");