This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

fixed y when both tag and due date

  • Loading branch information...
Greg Allen
Greg Allen committed Feb 20, 2010
1 parent e5120de commit f4e58f15c9d2f8538e65f0dc689a07d4591c2a2a
Showing with 1 addition and 1 deletion.
  1. +1 −1 TransparentTableViewCell.m
@@ -17,7 +17,7 @@ -(void)drawWithFrame:(NSRect)cellFrame inView:(NSView *)controlView {
NSColor* primaryColor = [self isHighlighted] ? [NSColor whiteColor] : [NSColor colorWithCalibratedWhite:(225.0f / 255.0f) alpha:1];
NSString* primaryText = [self title];
- int y = ([altText isEqualToString:@""] || [alt2Text isEqualToString:@""]) ? cellFrame.origin.y : cellFrame.origin.y+cellFrame.size.height/5;
+ int y = (![altText isEqualToString:@""] || ![alt2Text isEqualToString:@""]) ? cellFrame.origin.y : cellFrame.origin.y+cellFrame.size.height/5;
NSMutableDictionary* primaryTextAttributes = [NSMutableDictionary dictionaryWithObjectsAndKeys: primaryColor, NSForegroundColorAttributeName, nil];
if (shouldBold) {
[primaryTextAttributes setObject:[NSFont boldSystemFontOfSize:11] forKey:NSFontAttributeName];

0 comments on commit f4e58f1

Please sign in to comment.