]> git.lyx.org Git - lyx.git/commitdiff
Newly created inline math is not numbered
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sat, 11 May 2019 21:18:10 +0000 (23:18 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sat, 11 May 2019 21:18:10 +0000 (23:18 +0200)
The bad initialisation created phantom entries in equation ToC

Fixes bug #11423.

src/mathed/InsetMathHull.cpp

index 582685e4f968a512b383a13958194b16811e05c8..7e65260be4ed1268bc94582820fafecc18b3871c 100644 (file)
@@ -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))
 {