commit 0237292eb148dc69cf608f612e0682c181e94891
Author: Enrico Forestieri <for...@lyx.org>
Date:   Sun Jul 9 23:31:33 2017 +0200

    Fix bug #10546
    
    A labeled equation is also numbered.
---
 src/mathed/MathParser.cpp |    1 +
 status.22x                |    2 ++
 2 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/mathed/MathParser.cpp b/src/mathed/MathParser.cpp
index a2094c9..45434e3 100644
--- a/src/mathed/MathParser.cpp
+++ b/src/mathed/MathParser.cpp
@@ -1789,6 +1789,7 @@ bool Parser::parse1(InsetMathGrid & grid, unsigned flags,
                        asArray(label, ar);
                        if (grid.asHullInset()) {
                                grid.asHullInset()->label(cellrow, label);
+                               grid.asHullInset()->numbered(cellrow, true);
                        } else {
                                cell->push_back(createInsetMath(t.cs(), buf));
                                cell->push_back(MathAtom(new 
InsetMathBrace(ar)));
diff --git a/status.22x b/status.22x
index 763d16a..fbd57bd 100644
--- a/status.22x
+++ b/status.22x
@@ -95,6 +95,8 @@ What's new
 
 - Avoid a case of stuck cursor after entering an inset (bug 10630).
 
+- Don't swallow labels not entered through the toolbar in mathed (bug 10546).
+
 
 * INTERNALS
 

Reply via email to