Newly created inline math is not numbered

The bad initialisation created phantom entries in equation ToC

Fixes bug #11423.

(cherry picked from commit 175711046d)
This commit is contained in:
Jean-Marc Lasgouttes 2019-05-11 23:18:10 +02:00
parent f6c0c1ee35
commit 23505a8a91
2 changed files with 4 additions and 1 deletions

View 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))
{

View 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