]> granicus.if.org Git - transmission/commitdiff
always draw the top white line on the filter bar
authorMitchell Livingston <livings124@transmissionbt.com>
Sun, 2 Jan 2011 17:14:38 +0000 (17:14 +0000)
committerMitchell Livingston <livings124@transmissionbt.com>
Sun, 2 Jan 2011 17:14:38 +0000 (17:14 +0000)
macosx/FilterBarView.m

index a634cf4c2949702f302d880c84ce87e9cffaabc4..4708f4bf784d055c279c431b542b630093ab9d69 100644 (file)
     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;