* Licence details can be found in the file COPYING.
*
* \author Matthias Ettrich
- * \author Lars Gullik Bjønnes
+ * \author Lars Gullik Bjønnes
* \author John Levon
*
* Full author contact details are available in file CREDITS.
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)
+{
+ for (int i = 0; i < num_lines; ++i) {
+ newline();
+ }
+}
bool TexRow::getIdFromRow(int row, int & id, int & pos) const
{
}
if (!foundid)
return rowlist.size();
- return distance(rowlist.begin(), bestrow);
+ return distance(rowlist.begin(), bestrow) + 1;
}