diff --git a/src/TexRow.cpp b/src/TexRow.cpp index 635be479f0..e51c4fb4ff 100644 --- a/src/TexRow.cpp +++ b/src/TexRow.cpp @@ -73,6 +73,8 @@ int TexRow::getRowFromIdPos(int id, int pos) const } else if (foundid) break; } + if (!foundid) + return rowlist.size(); return bestrow; }