From 175711046db2b986550318fa78d901628de28cb8 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Sat, 11 May 2019 23:18:10 +0200 Subject: [PATCH] Newly created inline math is not numbered The bad initialisation created phantom entries in equation ToC Fixes bug #11423. --- src/mathed/InsetMathHull.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) { -- 2.39.2