always draw the top white line on the filter bar

This commit is contained in:
Mitchell Livingston 2011-01-02 17:14:38 +00:00
parent 4b190aa0c2
commit 7760be2c45
1 changed files with 6 additions and 9 deletions

View File

@ -55,16 +55,13 @@
NSColor * colorRects[2];
NSRect lineBorderRect = NSMakeRect(NSMinX(rect), NSHeight([self bounds]) - 1.0, NSWidth(rect), 1.0);
if ([[self window] isMainWindow])
if (NSIntersectsRect(lineBorderRect, rect))
{
if (NSIntersectsRect(lineBorderRect, rect))
{
gridRects[count] = lineBorderRect;
colorRects[count] = [NSColor whiteColor];
++count;
gridRects[count] = lineBorderRect;
colorRects[count] = [NSColor whiteColor];
++count;
rect.size.height -= 1.0;
}
rect.size.height -= 1.0;
}
lineBorderRect.origin.y = 0.0;