Changeset 3215


Ignore:
Timestamp:
Sep 28, 2007, 1:05:01 PM (14 years ago)
Author:
livings124
Message:

make sure to retain the attributes dictionary

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/PeerProgressIndicatorCell.m

    r3214 r3215  
    4343        if ([[NSUserDefaults standardUserDefaults] boolForKey: @"DisplayPeerProgressBarNumber"])
    4444        {
    45             NSMutableParagraphStyle *centeredStyle = [[[NSMutableParagraphStyle alloc] init] autorelease];
    46             [centeredStyle setAlignment:NSCenterTextAlignment];
    47            
    4845            if (!fAttributes)
    49                 fAttributes = [NSDictionary dictionaryWithObject: [NSFont systemFontOfSize: 11.0] forKey: NSFontAttributeName];
     46                fAttributes = [[NSDictionary alloc] initWithObjectsAndKeys: [NSFont systemFontOfSize: 11.0], NSFontAttributeName, nil];
    5047            [[NSString stringWithFormat: @"%.1f%%", [self floatValue] * 100.0] drawInRect: cellFrame withAttributes: fAttributes];
    5148        }
Note: See TracChangeset for help on using the changeset viewer.