Ignore:
Timestamp:
May 23, 2011, 12:45:17 AM (10 years ago)
Author:
livings124
Message:

explicit cast to Torrent * when calculating transfer name length

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/TorrentCell.m

    r12444 r12454  
    495495        priorityImage = [NSApp isOnSnowLeopardOrBetter] ? [priorityImage retain] : [priorityImage copy];
    496496       
    497         NSRect priorityRect = NSMakeRect(NSMaxX(titleRect) + PADDING_BETWEEN_TITLE_AND_PRIORITY,
    498                                         NSMidY(titleRect) - PRIORITY_ICON_HEIGHT  * 0.5,
    499                                         PRIORITY_ICON_WIDTH, PRIORITY_ICON_HEIGHT);
     497        const NSRect priorityRect = NSMakeRect(NSMaxX(titleRect) + PADDING_BETWEEN_TITLE_AND_PRIORITY,
     498                                               NSMidY(titleRect) - PRIORITY_ICON_HEIGHT  * 0.5,
     499                                               PRIORITY_ICON_WIDTH, PRIORITY_ICON_HEIGHT);
    500500       
    501501        [self drawImage: priorityImage inRect: priorityRect];
     
    698698    }
    699699   
    700     if ([[self representedObject] priority] != TR_PRI_NORMAL)
     700    if ([(Torrent *)[self representedObject] priority] != TR_PRI_NORMAL)
    701701    {
    702702        result.size.width -= PRIORITY_ICON_WIDTH + PADDING_BETWEEN_TITLE_AND_PRIORITY;
Note: See TracChangeset for help on using the changeset viewer.