]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathDiagram.cpp
We only support gcc >= 4.9.
[lyx.git] / src / mathed / InsetMathDiagram.cpp
index 4a7ea3c3b822d9221b6f0629bcdfff6229d2dcec..66d577f6b02ddf3734b3e286aae6a28a86daca2d 100644 (file)
@@ -51,7 +51,7 @@ void InsetMathDiagram::metrics(MetricsInfo & mi, Dimension & dim) const
        Changer dummy2 = mi.base.changeEnsureMath();
        FontInfo & f = mi.base.font;
        Changer dummy = (f.style() == DISPLAY_STYLE) ? f.changeStyle(TEXT_STYLE)
-               : Changer();
+               : noChange();
        InsetMathGrid::metrics(mi, dim);
 }
 
@@ -61,12 +61,12 @@ void InsetMathDiagram::draw(PainterInfo & pi, int x, int y) const
        Changer dummy2 = pi.base.changeEnsureMath();
        FontInfo & f = pi.base.font;
        Changer dummy = (f.style() == DISPLAY_STYLE) ? f.changeStyle(TEXT_STYLE)
-               : Changer();
+               : noChange();
        InsetMathGrid::draw(pi, x, y);
 }
 
 
-void InsetMathDiagram::write(WriteStream & os) const
+void InsetMathDiagram::write(TeXMathStream & os) const
 {
        MathEnsurer ensurer(os);
        os << "\\Diagram";