1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-03-10 14:13:23 +00:00

a little simplification of the last commit

This commit is contained in:
Mitchell Livingston 2008-06-30 19:56:29 +00:00
parent 658741d6bb
commit f3f1526ab0

View file

@ -119,8 +119,7 @@
FileNameCell * cell = (FileNameCell *)[self preparedCellAtColumn: [self columnWithIdentifier: @"Name"] row: row];
NSRect iconRect = [cell imageRectForBounds: [self rectOfRow: row]];
iconRect.origin.x += [self frameOfOutlineCellAtRow: row].size.width;
iconRect.origin.x += [self indentationPerLevel] * (float)([self levelForRow: row] + ([[self itemAtRow: row] isFolder] ? 0 : 1));
iconRect.origin.x += [self indentationPerLevel] * (float)([self levelForRow: row] + 1);
return iconRect;
}