]> granicus.if.org Git - transmission/commitdiff
a little simplification of the last commit
authorMitchell Livingston <livings124@transmissionbt.com>
Mon, 30 Jun 2008 19:56:29 +0000 (19:56 +0000)
committerMitchell Livingston <livings124@transmissionbt.com>
Mon, 30 Jun 2008 19:56:29 +0000 (19:56 +0000)
macosx/FileOutlineView.m

index bbc58d87b87e277c57af4ed40ff8e60c1334bf4e..7dc84f5b4c1f69133a3b834308edbd4ea9f02b82 100644 (file)
     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;
 }