From: Mitchell Livingston Date: Mon, 30 Jun 2008 19:56:29 +0000 (+0000) Subject: a little simplification of the last commit X-Git-Tag: 1.31~169 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f3f1526ab073eba286e30bee328a787a83b41f65;p=transmission a little simplification of the last commit --- diff --git a/macosx/FileOutlineView.m b/macosx/FileOutlineView.m index bbc58d87b..7dc84f5b4 100644 --- a/macosx/FileOutlineView.m +++ b/macosx/FileOutlineView.m @@ -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; }