From: André Pönitz Date: Fri, 2 Aug 2002 07:50:01 +0000 (+0000) Subject: fix recently introduced macro reading bug X-Git-Tag: 1.6.10~18706 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=d47e8c38e335258a1c8b04089459148a734f2a15;p=features.git fix recently introduced macro reading bug git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4835 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/mathed/math_cursor.C b/src/mathed/math_cursor.C index 468d67d63e..d13408b91e 100644 --- a/src/mathed/math_cursor.C +++ b/src/mathed/math_cursor.C @@ -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)); diff --git a/src/mathed/math_parser.C b/src/mathed/math_parser.C index 02decd07b5..aa9c09cbed 100644 --- a/src/mathed/math_parser.C +++ b/src/mathed/math_parser.C @@ -320,7 +320,7 @@ Token const & Parser::getToken() void Parser::skipSpaces() { - while (nextToken().cat() == catSpace) + while (nextToken().cat() == catSpace || nextToken().cat() == catNewline) getToken(); }