void TexRow::start(int id, int pos)
{
+ if (started)
+ return;
+
lastid = id;
lastpos = pos;
+ started = true;
}
int const id = lastid;
RowList::value_type tmp(id, lastpos);
rowlist.push_back(tmp);
+ started = false;
}
void TexRow::newlines(int num_lines)
}
if (!foundid)
return rowlist.size();
- return distance(rowlist.begin(), bestrow);
+ return distance(rowlist.begin(), bestrow) + 1;
}