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
This commit is contained in:
André Pönitz 2002-02-15 14:18:44 +00:00
parent d7f701b8d6
commit 0ad5f550fe

View File

@ -588,10 +588,16 @@ bool Parser::parse_lines(MathAtom & t, bool numbered, bool outmost)
curr_label_.erase(); curr_label_.erase();
// reading a row // reading a row
for (MathInset::col_type col = 0; col < p->ncols(); ++col) { for (MathInset::col_type col = 0; true; ++col) {
//lyxerr << "reading cell " << row << " " << col << "\n"; //lyxerr << "reading cell " << row << " " << col << " "
// << p->ncols() << "\n";
//lyxerr << "ncols: " << 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()); MathArray & ar = p->cell(col + row * p->ncols());
parse_into(ar, FLAG_BLOCK); parse_into(ar, FLAG_BLOCK);
// remove 'unnecessary' braces: // remove 'unnecessary' braces: