Compare row against _numberOfRows not _numberOfColumns.

Patch by Tim Schmielau <tim@smmo.org>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28379 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fredkiefer 2009-07-05 09:45:18 +00:00
parent a225e27c0e
commit fc7b0dd25d
2 changed files with 9 additions and 1 deletions

View file

@ -5987,7 +5987,8 @@ static BOOL selectContiguousRegion(NSTableView *self,
column: (int)column
{
int i,j;
if (row < _numberOfColumns)
if (row < _numberOfRows)
{
// First look for cells in the same row
for (j = column - 1; j > -1; j--)