X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;ds=inline;f=src%2FTexRow.cpp;h=780cd52af07f7ec5702a3ffca107d99f6ec7ed51;hb=6fdb32958c6f0e7397455734c207790468c2da6c;hp=ac3c7c7a723e412b64898da388f93f0618c41215;hpb=5862c1e414385b9d795e7975883257c384e3e375;p=lyx.git diff --git a/src/TexRow.cpp b/src/TexRow.cpp index ac3c7c7a72..780cd52af0 100644 --- a/src/TexRow.cpp +++ b/src/TexRow.cpp @@ -32,8 +32,12 @@ void TexRow::reset() void TexRow::start(int id, int pos) { + if (started) + return; + lastid = id; lastpos = pos; + started = true; } @@ -42,6 +46,7 @@ void TexRow::newline() int const id = lastid; RowList::value_type tmp(id, lastpos); rowlist.push_back(tmp); + started = false; } void TexRow::newlines(int num_lines) @@ -68,9 +73,6 @@ bool TexRow::getIdFromRow(int row, int & id, int & pos) const int TexRow::getRowFromIdPos(int id, int pos) const { bool foundid = false; - //lyxerr<<"Table:"; - //for (unsigned int i=0; i