mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-25 05:55:34 +00:00
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:
parent
b2ea4c019d
commit
d47e8c38e3
@ -415,7 +415,7 @@ void MathCursor::paste(MathGridInset const & data)
|
|||||||
// single cell/part of cell
|
// single cell/part of cell
|
||||||
paste(data.cell(0));
|
paste(data.cell(0));
|
||||||
} else {
|
} else {
|
||||||
// mulitple cells
|
// multiple cells
|
||||||
idx_type idx; // index of upper left cell
|
idx_type idx; // index of upper left cell
|
||||||
MathGridInset * p = enclosingGrid(idx);
|
MathGridInset * p = enclosingGrid(idx);
|
||||||
col_type const numcols = min(data.ncols(), p->ncols() - p->col(idx));
|
col_type const numcols = min(data.ncols(), p->ncols() - p->col(idx));
|
||||||
|
@ -320,7 +320,7 @@ Token const & Parser::getToken()
|
|||||||
|
|
||||||
void Parser::skipSpaces()
|
void Parser::skipSpaces()
|
||||||
{
|
{
|
||||||
while (nextToken().cat() == catSpace)
|
while (nextToken().cat() == catSpace || nextToken().cat() == catNewline)
|
||||||
getToken();
|
getToken();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user