]> git.lyx.org Git - features.git/blobdiff - src/mathed/math_parser.C
improve support for align and alignat
[features.git] / src / mathed / math_parser.C
index d3915d02636b419d9d4785fbb76a545079519058..f7dcde03cbc574d3dc6dc69ca643ca0fab537ed8 100644 (file)
@@ -591,14 +591,13 @@ MathMatrixInset * Parser::parse_normal()
 
        if (name == "align" || name == "align*") {
                MathMatrixInset * p = new MathMatrixInset(LM_OT_ALIGN);
-               p->halign(getArg('{', '}'));
                parse_lines(p, !stared(name), true);
                return p;
        }
 
        if (name == "alignat" || name == "alignat*") {
-               MathMatrixInset * p = new MathMatrixInset(LM_OT_ALIGNAT);
-               p->halign(getArg('{', '}'));
+               MathMatrixInset * p =
+                       new MathMatrixInset(LM_OT_ALIGNAT, 2 * atoi(getArg('{', '}').c_str()));
                parse_lines(p, !stared(name), true);
                return p;
        }