X-Git-Url: https://code.grnet.gr/git/pithos-macos/blobdiff_plain/cc4260ccfd391bb46460c6dbe1e72030981d3b7f..258db46f261ba5b910f5441d3469f5fb64d28800:/pithos-macos/ImageAndTextCell.m diff --git a/pithos-macos/ImageAndTextCell.m b/pithos-macos/ImageAndTextCell.m index 52baa00..0bb3163 100644 --- a/pithos-macos/ImageAndTextCell.m +++ b/pithos-macos/ImageAndTextCell.m @@ -183,11 +183,8 @@ imageFrame.origin.y -= kImageOriginYOffset; imageFrame.size = imageSize; - if ([controlView isFlipped]) - imageFrame.origin.y += ceil((cellFrame.size.height + imageFrame.size.height) / 2); - else - imageFrame.origin.y += ceil((cellFrame.size.height - imageFrame.size.height) / 2); - [image compositeToPoint:imageFrame.origin operation:NSCompositeSourceOver]; + imageFrame.origin.y += ceil((cellFrame.size.height - imageFrame.size.height) / 2); + [image drawInRect:imageFrame fromRect:NSZeroRect operation:NSCompositeSourceOver fraction:1.0 respectFlipped:YES hints:nil]; NSRect newFrame = cellFrame; newFrame.origin.x += kTextOriginXOffset;