X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathDiagram.cpp;h=66d577f6b02ddf3734b3e286aae6a28a86daca2d;hb=4ed0312c51704780af1c452d3a82a84171b3725a;hp=3a9b2efa32b33f174747a3cf894e569300d87336;hpb=67215833a174bfb1db8a259f61ed57ae67e10655;p=lyx.git diff --git a/src/mathed/InsetMathDiagram.cpp b/src/mathed/InsetMathDiagram.cpp index 3a9b2efa32..66d577f6b0 100644 --- a/src/mathed/InsetMathDiagram.cpp +++ b/src/mathed/InsetMathDiagram.cpp @@ -50,8 +50,8 @@ void InsetMathDiagram::metrics(MetricsInfo & mi, Dimension & dim) const { Changer dummy2 = mi.base.changeEnsureMath(); FontInfo & f = mi.base.font; - Changer dummy = (f.style() == FONT_STYLE_DISPLAY) ? f.changeStyle(FONT_STYLE_TEXT) - : Changer(); + Changer dummy = (f.style() == DISPLAY_STYLE) ? f.changeStyle(TEXT_STYLE) + : noChange(); InsetMathGrid::metrics(mi, dim); } @@ -60,13 +60,13 @@ void InsetMathDiagram::draw(PainterInfo & pi, int x, int y) const { Changer dummy2 = pi.base.changeEnsureMath(); FontInfo & f = pi.base.font; - Changer dummy = (f.style() == FONT_STYLE_DISPLAY) ? f.changeStyle(FONT_STYLE_TEXT) - : Changer(); + Changer dummy = (f.style() == DISPLAY_STYLE) ? f.changeStyle(TEXT_STYLE) + : noChange(); InsetMathGrid::draw(pi, x, y); } -void InsetMathDiagram::write(WriteStream & os) const +void InsetMathDiagram::write(TeXMathStream & os) const { MathEnsurer ensurer(os); os << "\\Diagram";