mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 13:10:59 +00:00
Remove exception when [indexes lastIndex] > numberOfColumns
This commit is contained in:
parent
a3d73cd3fb
commit
98ebe51150
2 changed files with 9 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue