erratum to r33628

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33665 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Edwin Leuven 2010-03-08 04:04:56 +00:00
parent 316b332ec7
commit f313bd6a90

View File

@ -3180,7 +3180,7 @@ int InsetTabular::rowFromY(Cursor & cur, int y) const
// top y coordinate of tabular
int h = yo(cur.bv()) - tabular.rowAscent(0);
row_type r = 0;
for (; r < nrows() && y > h; ++r)
for (; r < tabular.nrows() && y > h; ++r)
h += tabular.rowAscent(r) + tabular.rowDescent(r)
+ tabular.interRowSpace(r);