Avoid getting an invalid column or row rect.
This commit is contained in:
1 parent
bffecb3500
commit
cbd0489853
1 file changed
+3
-1
@@ -122,7 +122,9 @@
|
||||
|
||||
- (NSRect)frameOfCellAtColumn:(NSInteger)column row:(NSInteger)row
|
||||
{
|
||||
if (![self.delegate respondsToSelector:@selector(tableView:spanForTableColumn:row:)]) {
|
||||
if (![self.delegate respondsToSelector:@selector(tableView:spanForTableColumn:row:)] ||
|
||||
column == -1 ||
|
||||
row == -1) {
|
||||
return [super frameOfCellAtColumn:column row:row];
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user