From: André Pönitz Date: Fri, 15 Feb 2002 14:18:44 +0000 (+0000) Subject: fix parser bug for \begin{align}...\end{align} X-Git-Tag: 1.6.10~19850 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=0ad5f550fe5729961fd9b4f73732bd1a36be720f;p=features.git fix parser bug for \begin{align}...\end{align} git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3545 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/mathed/math_parser.C b/src/mathed/math_parser.C index 79229b2d95..c6d24218aa 100644 --- a/src/mathed/math_parser.C +++ b/src/mathed/math_parser.C @@ -588,10 +588,16 @@ bool Parser::parse_lines(MathAtom & t, bool numbered, bool outmost) curr_label_.erase(); // reading a row - for (MathInset::col_type col = 0; col < p->ncols(); ++col) { - //lyxerr << "reading cell " << row << " " << col << "\n"; + for (MathInset::col_type col = 0; true; ++col) { + //lyxerr << "reading cell " << row << " " << col << " " + // << p->ncols() << "\n"; //lyxerr << "ncols: " << p->ncols() << "\n"; + if (col >= p->ncols()) { + //lyxerr << "adding col " << col << "\n"; + p->addCol(p->ncols()); + } + MathArray & ar = p->cell(col + row * p->ncols()); parse_into(ar, FLAG_BLOCK); // remove 'unnecessary' braces: