getRowFromIdPos returns row shifted by 1 (we count internally from 0).

The function still doesn't work properly looking at the
the comments of the original writer (last *nonempty* row),
but its hopefully better now.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34172 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Pavel Sanda 2010-04-16 18:52:40 +00:00
parent b6846bdace
commit 70d9833e39

View 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;
}