]> git.lyx.org Git - lyx.git/commitdiff
fix recently introduced macro reading bug
authorAndré Pönitz <poenitz@gmx.net>
Fri, 2 Aug 2002 07:50:01 +0000 (07:50 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Fri, 2 Aug 2002 07:50:01 +0000 (07:50 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4835 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/math_cursor.C
src/mathed/math_parser.C

index 468d67d63e3a994f2608ae06cd87be92a99a5a13..d13408b91e9073b716dae6df69bcd48cdeba8067 100644 (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));
index 02decd07b583e8776058c5bb8343180e88349dea..aa9c09cbedeb1b1aff6c0c9a2fbb3e83b0320fe7 100644 (file)
@@ -320,7 +320,7 @@ Token const & Parser::getToken()
 
 void Parser::skipSpaces()
 {
-       while (nextToken().cat() == catSpace)
+       while (nextToken().cat() == catSpace || nextToken().cat() == catNewline)
                getToken();
 }