Created
June 29, 2010 23:11
-
-
Save preble/457967 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: Framework/BGHUDTableViewHeaderCell.m | |
=================================================================== | |
--- Framework/BGHUDTableViewHeaderCell.m | |
+++ Framework/BGHUDTableViewHeaderCell.m | |
@@ -73,7 +73,7 @@ | |
} | |
- (void)_drawThemeContents:(NSRect)frame highlighted:(BOOL)flag inView:(id)view { | |
- | |
+ | |
//Draw base layer | |
[[[[BGThemeManager keyedManager] themeForKey: self.themeKey] tableHeaderCellBorderColor] set]; | |
NSRectFill(frame); | |
@@ -139,6 +139,10 @@ | |
- (void)drawSortIndicatorWithFrame:(NSRect) frame inView:(id) controlView ascending:(BOOL) ascFlag priority:(NSInteger) priInt { | |
+ static BOOL nested = NO; | |
+ if (nested) | |
+ return; | |
+ | |
frame.origin.y -=1; | |
frame.size.height += 2; | |
@@ -177,7 +181,12 @@ | |
frame.origin.y += 1; | |
frame.size.height -= 2; | |
- //[super drawInteriorWithFrame: frame inView: controlView]; | |
+ if (priInt == 0) | |
+ { | |
+ nested = YES; | |
+ [super drawInteriorWithFrame: frame inView: controlView]; | |
+ nested = NO; | |
+ } | |
} | |
#pragma mark - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment