Changeset 9764


Ignore:
Timestamp:
Dec 14, 2009, 11:47:15 PM (12 years ago)
Author:
livings124
Message:

one less calculation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/TorrentCell.m

    r9752 r9764  
    636636        result.size.width -= PADDING_BETWEEN_TITLE_AND_MIN_STATUS + NSWidth(statusRect);
    637637    if ([[self representedObject] priority] != TR_PRI_NORMAL)
     638    {
    638639        result.size.width -= PRIORITY_ICON_WIDTH + PADDING_BETWEEN_TITLE_AND_PRIORITY;
    639    
    640     result.size.width = MIN(result.size.width, [string size].width);
     640        result.size.width = MIN(result.size.width, [string size].width); //only need to force it smaller for the priority icon
     641    }
    641642   
    642643    return result;
Note: See TracChangeset for help on using the changeset viewer.