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:
parent
658741d6bb
commit
f3f1526ab0
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue