X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FTexRow.cpp;h=a18d84f5438925847e1a65129d5f14f7236aeb97;hb=225c1dbe55635a97b183909ea7194b8d92051378;hp=f019c25ea31769fba74b26be224014485f430724;hpb=b6846bdace3bb9e8619faeea2a0921d7664c3a61;p=lyx.git diff --git a/src/TexRow.cpp b/src/TexRow.cpp index f019c25ea3..a18d84f543 100644 --- a/src/TexRow.cpp +++ b/src/TexRow.cpp @@ -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; }