From: Mitchell Livingston Date: Sun, 2 Jan 2011 17:14:38 +0000 (+0000) Subject: always draw the top white line on the filter bar X-Git-Tag: 2.20b1~109 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7760be2c450624acdc0a796bf6c4855b50587fc2;p=transmission always draw the top white line on the filter bar --- diff --git a/macosx/FilterBarView.m b/macosx/FilterBarView.m index a634cf4c2..4708f4bf7 100644 --- a/macosx/FilterBarView.m +++ b/macosx/FilterBarView.m @@ -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; - - rect.size.height -= 1.0; - } + gridRects[count] = lineBorderRect; + colorRects[count] = [NSColor whiteColor]; + ++count; + + rect.size.height -= 1.0; } lineBorderRect.origin.y = 0.0;