]> git.lyx.org Git - features.git/commitdiff
Fix bug #10546
authorEnrico Forestieri <forenr@lyx.org>
Sun, 9 Jul 2017 21:31:33 +0000 (23:31 +0200)
committerEnrico Forestieri <forenr@lyx.org>
Sun, 9 Jul 2017 21:31:33 +0000 (23:31 +0200)
A labeled equation is also numbered.

src/mathed/MathParser.cpp
status.22x

index a2094c920ed262585b82dc8409517a0f0311fa67..45434e32e3a95e23abbae642d5508a4ef204c439 100644 (file)
@@ -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)));
index 763d16a4716bcda2a4e434669f868819c94c765b..fbd57bd949b30541a31a06ebc5d539be52960c75 100644 (file)
@@ -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