]> git.lyx.org Git - features.git/blobdiff - src/mathed/math_parser.C
read support for \begin{displaymath}...\end{displaymath}
[features.git] / src / mathed / math_parser.C
index 1421b5b7f3c067b56e36c8ae9dcb2b5805ea2eac..a37fbeb04737ea1ef203469463d43dfde0a3906b 100644 (file)
@@ -615,8 +615,8 @@ bool Parser::parse_normal(MathAtom & matrix)
 
        string const name = getArg('{', '}');
 
-       if (name == "equation" || name == "equation*") {
-               curr_num_ = !stared(name);
+       if (name == "equation" || name == "equation*" || name == "displaymath") {
+               curr_num_ = (name == "equation");
                curr_label_.erase();
                matrix = MathAtom(new MathMatrixInset(LM_OT_EQUATION));
                MathMatrixInset * p = matrix->asMatrixInset();