Changeset 13536


Ignore:
Timestamp:
Sep 26, 2012, 4:55:34 PM (10 years ago)
Author:
livings124
Message:

#5053 Fix crash on 10.6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/StatusBarView.m

    r13469 r13536  
    140140    NSRectFillListWithColors(gridRects, colorRects, count);
    141141   
    142     [fNoiseImage drawInRect: rect
    143                    fromRect: [self convertRectToBacking: rect]
    144                   operation: NSCompositeSourceOver
    145                    fraction: 0.12];
     142    if (fNoiseImage) {
     143        NSAssert([NSApp isOnLionOrBetter], @"we have a noise image, but we're on 10.6"); //https://trac.transmissionbt.com/ticket/5053
     144        [fNoiseImage drawInRect: rect
     145                       fromRect: [self convertRectToBacking: rect]
     146                      operation: NSCompositeSourceOver
     147                       fraction: 0.12];
     148    }
    146149}
    147150
Note: See TracChangeset for help on using the changeset viewer.