-[GSRGBColor isEqual:] was ignoring the alpha component when determining equality.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29151 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Eric Wasylishen 2009-12-21 03:39:46 +00:00
parent ab285b8ea4
commit c435d58e6a
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2009-12-20 Eric Wasylishen <ewasylishen@gmail.com>
* Source/NSColor.m: -[GSRGBColor isEqual:] was ignoring the alpha
channel when testing equality.
2209-12-20 Eric Wasylishen <ewasylishen@gmail.com>
* Source/NSColorWell.m

View file

@ -2650,7 +2650,8 @@ static NSRecursiveLock *namedColorLock = nil;
if ([other isKindOfClass: [self class]] == NO
|| [other redComponent] != _red_component
|| [other greenComponent] != _green_component
|| [other blueComponent] != _blue_component)
|| [other blueComponent] != _blue_component
|| [other alphaComponent] != _alpha_component)
{
return NO;
}