From f3f1526ab073eba286e30bee328a787a83b41f65 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Mon, 30 Jun 2008 19:56:29 +0000 Subject: [PATCH] a little simplification of the last commit --- macosx/FileOutlineView.m | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; }