Don't check for icons for empty rows.

This commit is contained in:
Mitchell Livingston 2006-06-14 20:35:28 +00:00
parent 19dce501cf
commit 94768da2ae
1 changed files with 3 additions and 0 deletions

View File

@ -211,6 +211,9 @@
- (BOOL) pointInIconRect: (NSPoint) point
{
int row = [self rowAtPoint: point];
if (row < 0)
return NO;
NSRect cellRect = [self frameOfCellAtColumn:
[self columnWithIdentifier: @"Torrent"] row: row];
NSSize iconSize = [[[fTorrents objectAtIndex: row] iconFlipped] size];