]> git.lyx.org Git - lyx.git/blobdiff - src/TexRow.cpp
Get rid of regex_constants::match_partial
[lyx.git] / src / TexRow.cpp
index a18d84f5438925847e1a65129d5f14f7236aeb97..780cd52af07f7ec5702a3ffca107d99f6ec7ed51 100644 (file)
@@ -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)