mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +00:00
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:
parent
d7f701b8d6
commit
0ad5f550fe
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user