mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 06:51:44 +00:00
-[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:
parent
ab285b8ea4
commit
c435d58e6a
2 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue