#include <config.h>
#include "TexRow.h"
-#include "debug.h"
+
+#include "support/debug.h"
#include <algorithm>
bool TexRow::getIdFromRow(int row, int & id, int & pos) const
{
- if (row <= 0 || row > rowlist.size()) {
+ if (row <= 0 || row > int(rowlist.size())) {
id = -1;
pos = 0;
return false;
} else if (foundid)
break;
}
+ if (!foundid)
+ return rowlist.size();
return bestrow;
}