]> git.lyx.org Git - features.git/commitdiff
read support for \begin{displaymath}...\end{displaymath}
authorAndré Pönitz <poenitz@gmx.net>
Mon, 29 Oct 2001 16:10:41 +0000 (16:10 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Mon, 29 Oct 2001 16:10:41 +0000 (16:10 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2945 a592a061-630c-0410-9148-cb99ea01b6c8

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();