mirror of
https://github.com/transmission/transmission
synced 2025-03-13 15:39:01 +00:00
#5053 Fix crash on 10.6
This commit is contained in:
parent
d063c4fb1d
commit
c9f86ff4e3
1 changed files with 7 additions and 4 deletions
|
@ -139,10 +139,13 @@
|
|||
|
||||
NSRectFillListWithColors(gridRects, colorRects, count);
|
||||
|
||||
[fNoiseImage drawInRect: rect
|
||||
fromRect: [self convertRectToBacking: rect]
|
||||
operation: NSCompositeSourceOver
|
||||
fraction: 0.12];
|
||||
if (fNoiseImage) {
|
||||
NSAssert([NSApp isOnLionOrBetter], @"we have a noise image, but we're on 10.6"); //https://trac.transmissionbt.com/ticket/5053
|
||||
[fNoiseImage drawInRect: rect
|
||||
fromRect: [self convertRectToBacking: rect]
|
||||
operation: NSCompositeSourceOver
|
||||
fraction: 0.12];
|
||||
}
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
Loading…
Add table
Reference in a new issue