X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathHull.cpp;h=92574c8d2a0eac7e3b79c91236f7b94f54fd330f;hb=67215833a174bfb1db8a259f61ed57ae67e10655;hp=582685e4f968a512b383a13958194b16811e05c8;hpb=7cb0284a3ffa469c4c99184725f5a3e0b4056508;p=lyx.git diff --git a/src/mathed/InsetMathHull.cpp b/src/mathed/InsetMathHull.cpp index 582685e4f9..92574c8d2a 100644 --- a/src/mathed/InsetMathHull.cpp +++ b/src/mathed/InsetMathHull.cpp @@ -198,7 +198,7 @@ docstring hullName(HullType type) static InsetLabel * dummy_pointer = 0; InsetMathHull::InsetMathHull(Buffer * buf) - : InsetMathGrid(buf, 1, 1), type_(hullNone), numbered_(1, NUMBER), + : InsetMathGrid(buf, 1, 1), type_(hullNone), numbered_(1, NONUMBER), numbers_(1, empty_docstring()), label_(1, dummy_pointer), preview_(new RenderPreview(this)) { @@ -549,8 +549,8 @@ void InsetMathHull::metrics(MetricsInfo & mi, Dimension & dim) const } Changer dummy1 = mi.base.changeFontSet(standardFont()); - Changer dummy2 = mi.base.font.changeStyle(display() ? LM_ST_DISPLAY - : LM_ST_TEXT); + Changer dummy2 = mi.base.font.changeStyle(display() ? FONT_STYLE_DISPLAY + : FONT_STYLE_TEXT); // let the cells adjust themselves InsetMathGrid::metrics(mi, dim); @@ -653,8 +653,8 @@ void InsetMathHull::draw(PainterInfo & pi, int x, int y) const Changer dummy0 = really_change_color ? pi.base.font.changeColor(color) : Changer(); Changer dummy1 = pi.base.changeFontSet(standardFont()); - Changer dummy2 = pi.base.font.changeStyle(display() ? LM_ST_DISPLAY - : LM_ST_TEXT); + Changer dummy2 = pi.base.font.changeStyle(display() ? FONT_STYLE_DISPLAY + : FONT_STYLE_TEXT); int xmath = x; BufferParams::MathNumber const math_number = buffer().params().getMathNumber();