X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathDiagram.cpp;h=66d577f6b02ddf3734b3e286aae6a28a86daca2d;hb=7513d88350867812de3505bcffb9d2f826e52937;hp=c2019d4be856930273f5d456822a6ca327bfec07;hpb=02e82157ec583c3900e359de86be79fac6512387;p=lyx.git diff --git a/src/mathed/InsetMathDiagram.cpp b/src/mathed/InsetMathDiagram.cpp index c2019d4be8..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() == LM_ST_DISPLAY) ? f.changeStyle(LM_ST_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() == LM_ST_DISPLAY) ? f.changeStyle(LM_ST_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";