Changeset 6270


Ignore:
Timestamp:
Jun 30, 2008, 7:56:29 PM (13 years ago)
Author:
livings124
Message:

a little simplification of the last commit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/FileOutlineView.m

    r6269 r6270  
    120120    NSRect iconRect = [cell imageRectForBounds: [self rectOfRow: row]];
    121121   
    122     iconRect.origin.x += [self frameOfOutlineCellAtRow: row].size.width;
    123     iconRect.origin.x += [self indentationPerLevel] * (float)([self levelForRow: row] + ([[self itemAtRow: row] isFolder] ? 0 : 1));
     122    iconRect.origin.x += [self indentationPerLevel] * (float)([self levelForRow: row] + 1);
    124123    return iconRect;
    125124}
Note: See TracChangeset for help on using the changeset viewer.