From: Jean-Marc Lasgouttes Date: Sat, 11 May 2019 21:18:10 +0000 (+0200) Subject: Newly created inline math is not numbered X-Git-Tag: lyx-2.4.0dev-acb2ca7b~2046 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=175711046db2b986550318fa78d901628de28cb8;p=lyx.git Newly created inline math is not numbered The bad initialisation created phantom entries in equation ToC Fixes bug #11423. --- diff --git a/src/mathed/InsetMathHull.cpp b/src/mathed/InsetMathHull.cpp index 582685e4f9..7e65260be4 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)) {