]> git.lyx.org Git - lyx.git/blobdiff - src/TexRow.cpp
partial fix for bug 6986: Use the right tex2lyx (at least if tex2lyx is installed)
[lyx.git] / src / TexRow.cpp
index f019c25ea31769fba74b26be224014485f430724..a18d84f5438925847e1a65129d5f14f7236aeb97 100644 (file)
@@ -84,7 +84,7 @@ int TexRow::getRowFromIdPos(int id, int pos) const
        }
        if (!foundid)
                return rowlist.size();
-       return distance(rowlist.begin(), bestrow);
+       return distance(rowlist.begin(), bestrow) + 1;
 }