fix recently introduced macro reading bug

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4835 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2002-08-02 07:50:01 +00:00
parent b2ea4c019d
commit d47e8c38e3
2 changed files with 2 additions and 2 deletions

View File

@ -415,7 +415,7 @@ void MathCursor::paste(MathGridInset const & data)
// single cell/part of cell
paste(data.cell(0));
} else {
// mulitple cells
// multiple cells
idx_type idx; // index of upper left cell
MathGridInset * p = enclosingGrid(idx);
col_type const numcols = min(data.ncols(), p->ncols() - p->col(idx));

View File

@ -320,7 +320,7 @@ Token const & Parser::getToken()
void Parser::skipSpaces()
{
while (nextToken().cat() == catSpace)
while (nextToken().cat() == catSpace || nextToken().cat() == catNewline)
getToken();
}