Changeset 11622


Ignore:
Timestamp:
Jan 2, 2011, 5:14:38 PM (11 years ago)
Author:
livings124
Message:

always draw the top white line on the filter bar

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/FilterBarView.m

    r11621 r11622  
    5656   
    5757    NSRect lineBorderRect = NSMakeRect(NSMinX(rect), NSHeight([self bounds]) - 1.0, NSWidth(rect), 1.0);
    58     if ([[self window] isMainWindow])
     58    if (NSIntersectsRect(lineBorderRect, rect))
    5959    {
    60         if (NSIntersectsRect(lineBorderRect, rect))
    61         {
    62             gridRects[count] = lineBorderRect;
    63             colorRects[count] = [NSColor whiteColor];
    64             ++count;
    65            
    66             rect.size.height -= 1.0;
    67         }
     60        gridRects[count] = lineBorderRect;
     61        colorRects[count] = [NSColor whiteColor];
     62        ++count;
     63       
     64        rect.size.height -= 1.0;
    6865    }
    6966   
Note: See TracChangeset for help on using the changeset viewer.