Remove exception when [indexes lastIndex] > numberOfColumns

This commit is contained in:
Gregory John Casamento 2021-10-13 13:54:43 -04:00
parent a3d73cd3fb
commit 98ebe51150
2 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2021-10-13 Gregory John Casamento <greg.casamento@gmail.com>
* Source/NSTableView.m: Remove exception where lastIndex is greater
than number of columns.
2021-10-13 Gregory John Casamento <greg.casamento@gmail.com>
* Headers/Additions/GNUstepGUI/GSTheme.h: Add tabview enum

View file

@ -2783,8 +2783,10 @@ byExtendingSelection: (BOOL)flag
{
if ([indexes lastIndex] >= _numberOfColumns)
{
[NSException raise: NSInvalidArgumentException
format: @"Column index out of table in selectColumn"];
// Cocoa returns in this case...
NSDebugLLog(@"NSTableView", @"Column index %lu out of table in selectColumn",
[indexes lastIndex]);
return;
}
/* This check is not fully correct, as both sets may contain just