Avoid getting an invalid column or row rect.

This commit is contained in:
Damiano Galassi committed 2016-08-16 21:02:34 +02:00
1 parent bffecb3500
commit cbd0489853
1 file changed
+3 -1
+3 -1
View File
@@ -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];
}