diff --git a/PBSourceViewCell.m b/PBSourceViewCell.m index 86c8ad9ac..e905814ab 100644 --- a/PBSourceViewCell.m +++ b/PBSourceViewCell.m @@ -70,7 +70,8 @@ - (void)drawWithFrame:(NSRect)cellFrame inView:(NSView *)outlineView - (NSRect)infoButtonRectForBounds:(NSRect)bounds { CGFloat infoButtonWidth = 17.0f; CGFloat infoButtonHeight = 11.0f; - return NSMakeRect(NSMaxX(bounds) - infoButtonWidth, NSMinY(bounds) + (NSHeight(bounds) - infoButtonHeight)/2.0f, infoButtonWidth, infoButtonHeight); + return NSIntegralRectWithOptions(NSMakeRect(NSMaxX(bounds) - infoButtonWidth, NSMinY(bounds) + (NSHeight(bounds) - infoButtonHeight)/2.0f, infoButtonWidth, infoButtonHeight), + NSAlignMinYNearest | NSAlignHeightNearest | NSAlignMinXNearest | NSAlignWidthNearest); } - (NSImage *)infoButtonImage {