From d47e8c38e335258a1c8b04089459148a734f2a15 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Fri, 2 Aug 2002 07:50:01 +0000 Subject: [PATCH] fix recently introduced macro reading bug git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4835 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/math_cursor.C | 2 +- src/mathed/math_parser.C | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(); } -- 2.39.2