the check mark indicating completed peers in the inspector was being stretched becaus...
authorMitchell Livingston <livings124@transmissionbt.com>
Sat, 19 Feb 2011 19:30:24 +0000 (19:30 +0000)
committerMitchell Livingston <livings124@transmissionbt.com>
Sat, 19 Feb 2011 19:30:24 +0000 (19:30 +0000)
macosx/PeerProgressIndicatorCell.m

index f346bc38623581b2cc5c199586fef104677f6149..fbc4ed918c0c11c73b18f8af89307a46982dd4b2 100644 (file)
@@ -81,7 +81,8 @@
             NSImage * checkImage = [NSImage imageNamed: @"CompleteCheck.png"];
             
             const NSSize imageSize = [checkImage size];
-            const NSRect rect = NSMakeRect(NSMidX(cellFrame) - imageSize.width * 0.5, NSMidY(cellFrame) - imageSize.height * 0.5,
+            const NSRect rect = NSMakeRect(floor(NSMidX(cellFrame) - imageSize.width * 0.5),
+                                            floor(NSMidY(cellFrame) - imageSize.height * 0.5),
                                             imageSize.width, imageSize.height);
             
             if ([NSApp isOnSnowLeopardOrBetter])