the check mark indicating completed peers in the inspector was being stretched because the x-coordinate wasn't being floor()ed

This commit is contained in:
Mitchell Livingston 2011-02-19 19:30:24 +00:00
parent bd5739fc54
commit 33422cc9d5
1 changed files with 2 additions and 1 deletions

View 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])