]> 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>
Mon, 13 May 2019 08:05:33 +0000 (10:05 +0200)
The bad initialisation created phantom entries in equation ToC

Fixes bug #11423.

(cherry picked from commit 175711046db2b986550318fa78d901628de28cb8)

src/mathed/InsetMathHull.cpp
status.23x

index 2c2cd413c1513fdeb0f5dd7c46ae7d2f68a699eb..4f9737b78e02479b045d5c1e53d59536af94fd28 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))
 {
index 6050490264c490c7063ce16c96f730458dd06725..56a4c843c476cda3fabaa0b4fa71b8a7ec95ec0e 100644 (file)
@@ -205,6 +205,9 @@ What's new
 
 - Fix pre- and postnote fields in year-only biblatex-natbib citations.
 
+- Get rid of spurious empty entry in list of equations when creating new
+  formula (bug 11423).
+
 
 * INTERNALS