]> git.lyx.org Git - lyx.git/commitdiff
Fix bug #10546
authorEnrico Forestieri <forenr@lyx.org>
Mon, 19 Jun 2017 23:14:55 +0000 (01:14 +0200)
committerEnrico Forestieri <forenr@lyx.org>
Mon, 19 Jun 2017 23:14:55 +0000 (01:14 +0200)
A labeled equation is also numbered.

src/mathed/MathParser.cpp

index 6c04d625af8466eca9ded12a2da00e724a08b90a..b39f172fb7a6983fe8c679bdff061c47cdeaf1cb 100644 (file)
@@ -1799,6 +1799,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)));