* Source/GSThemeDrawing.m: Changes per discussion with Fred.

Added check to make sure the image is not overriden.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35705 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2012-10-17 12:15:52 +00:00
parent f248bc9988
commit 8ca0f08715
2 changed files with 11 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2012-10-17 08:15-EDT Gregory John Casamento <greg.casamento@gmail.com>
* Source/GSThemeDrawing.m: Changes per discussion with Fred.
Added check to make sure the image is not overriden.
2012-10-16 17:22-EDT Gregory John Casamento <greg.casamento@gmail.com>
* Headers/Additions/GNUstepGUI/GSTheme.h: Add declaration

View file

@ -90,8 +90,12 @@
else if([key isEqualToString:@"\r"] == NO &&
[key isEqualToString:@"\n"] == NO)
{
[cell setImage: nil];
[cell setAlternateImage: nil];
NSImage *cellImage = [cell image];
if(cellImage == [NSImage imageNamed:@"common_ret"])
{
[cell setImage: nil];
[cell setAlternateImage: nil];
}
}
}