From 0ad5f550fe5729961fd9b4f73732bd1a36be720f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Fri, 15 Feb 2002 14:18:44 +0000 Subject: [PATCH] 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 --- src/mathed/math_parser.C | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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: -- 2.39.2