* Source/NSBrowserCell.m (-drawInteriorWithFrame:inView:):

Restore code to draw the background when the cell is highligted


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34337 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
ericwa 2011-12-21 06:43:42 +00:00
parent 9f2485fcf7
commit 2a35bb6397
2 changed files with 11 additions and 0 deletions

View file

@ -291,11 +291,17 @@ static NSFont *_leafFont;
branch_image = [object_getClass(self) highlightedBranchImage];
if (nil != [self alternateImage])
cell_image = [self alternateImage];
// If we are highlighted, fill the background
[[self highlightColorInView: controlView] setFill];
NSRectFill(cellFrame);
}
else
{
if (!_browsercell_is_leaf)
branch_image = [object_getClass(self) branchImage];
// (Don't fill the background)
}
// Draw the branch image if there is one