double clicking the icon will now work properly in small view

This commit is contained in:
Mitchell Livingston 2006-07-05 22:53:37 +00:00
parent aa54615b21
commit b96b40602a
1 changed files with 2 additions and 1 deletions

View File

@ -210,7 +210,8 @@
return NO;
NSRect cellRect = [self frameOfCellAtColumn: [self columnWithIdentifier: @"Torrent"] row: row];
NSSize iconSize = [[[fTorrents objectAtIndex: row] iconFlipped] size];
NSSize iconSize = [fDefaults boolForKey: @"SmallView"] ? [[[fTorrents objectAtIndex: row] iconSmall] size]
: [[[fTorrents objectAtIndex: row] iconFlipped] size];
NSRect iconRect = NSMakeRect(cellRect.origin.x + 3.0, cellRect.origin.y
+ (cellRect.size.height - iconSize.height) * 0.5, iconSize.width, iconSize.height);