Source/NSTableView.m

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13191 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Pierre-Yves Rivaille 2002-03-21 23:50:07 +00:00
parent 2de3301639
commit db97da50e2
2 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,11 @@
2002-03-22 Pierre-Yves Rivaille <pyrivail@ens-lyon.fr>
* Source/NSTableView.m
([NSTableView -selectRow:byExtendingSelection:]):
rowIndex == _numberOfRows was not catched as invalid.
* Source/NSTableView.m ([NSTableView -draggingUpdated:sender]):
Less NSLog.
2002-03-21 Pierre-Yves Rivaille <pyrivail@ens-lyon.fr>
* Source/NSEvent.m

View file

@ -3518,7 +3518,7 @@ byExtendingSelection: (BOOL)flag
{
NSNumber *num = [NSNumber numberWithInt: rowIndex];
if (rowIndex < 0 || rowIndex > _numberOfRows)
if (rowIndex < 0 || rowIndex >= _numberOfRows)
{
[NSException raise: NSInvalidArgumentException
format: @"Row index out of table in selectRow"];
@ -6777,7 +6777,6 @@ byExtendingSelection: (BOOL)flag
if ((quarterPosition - oldDropRow * 4 <= 2) &&
(quarterPosition - oldDropRow * 4 >= -3) )
{
NSLog(@"nothing to do");
row = oldDropRow;
}
else