1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-03-13 07:33:02 +00:00

#5053 Fix crash on 10.6

This commit is contained in:
Mitchell Livingston 2012-09-26 16:55:34 +00:00
parent d063c4fb1d
commit c9f86ff4e3

View file

@ -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