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:
Fred Kiefer 2009-07-05 09:45:18 +00:00
parent 4905a0de91
commit 45726cd72c
2 changed files with 9 additions and 1 deletions

View file

@ -1,4 +1,11 @@
2009-07-05 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSTableView.m (_editPreviousEditableCellBeforeRow:column:):
Compare row against _numberOfRows not _numberOfColumns.
Patch by Tim Schmielau <tim@smmo.org>.
2009-06-30 Nicolas Roard <nicolas@roard.com>
* Source/NSTableHeaderView.m: Apply patch from Eric
Wasylishen <ewasylishen@gmail.com>, add live resize and
live moving for table columns if GSUseGhostResize is

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--)