Changeset 3923


Ignore:
Timestamp:
Nov 21, 2007, 8:22:04 PM (15 years ago)
Author:
livings124
Message:

get rid of an unnecessary width check

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/MessageWindowController.m

    r3875 r3923  
    176176    NSTableColumn * column = [tableView tableColumnWithIdentifier: @"Message"];
    177177   
    178     int count = 0;
    179     float width = [column width];
    180     if (width > 0)
    181     {
    182         if (!fAttributes)
    183             fAttributes = [[[[column dataCell] attributedStringValue] attributesAtIndex: 0 effectiveRange: NULL] retain];
    184        
    185         count = [[[fMessages objectAtIndex: row] objectForKey: @"Message"] sizeWithAttributes: fAttributes].width / width;
    186     }
    187    
     178    if (!fAttributes)
     179        fAttributes = [[[[column dataCell] attributedStringValue] attributesAtIndex: 0 effectiveRange: NULL] retain];
     180   
     181    int count = [[[fMessages objectAtIndex: row] objectForKey: @"Message"] sizeWithAttributes: fAttributes].width / [column width];
    188182    return [tableView rowHeight] * (float)(count+1);
    189183}
Note: See TracChangeset for help on using the changeset viewer.