Revision: 24124
          http://sourceforge.net/p/bibdesk/svn/24124
Author:   hofman
Date:     2019-08-11 22:05:36 +0000 (Sun, 11 Aug 2019)
Log Message:
-----------
check for identical objects first

Modified Paths:
--------------
    trunk/bibdesk/NSColor_BDSKExtensions.m

Modified: trunk/bibdesk/NSColor_BDSKExtensions.m
===================================================================
--- trunk/bibdesk/NSColor_BDSKExtensions.m      2019-08-11 22:03:14 UTC (rev 
24123)
+++ trunk/bibdesk/NSColor_BDSKExtensions.m      2019-08-11 22:05:36 UTC (rev 
24124)
@@ -395,10 +395,12 @@
 }
 
 - (BOOL)isEqual:(id)other {
+    if (self == other)
+        return YES;
     if ([other isMemberOfClass:[self class]] == NO)
         return NO;
     if (colorGenerator || ((BDSKDynamicColor *)other)->colorGenerator)
-        return self == other;
+        return NO;
     return [aquaColor isEqual:((BDSKDynamicColor *)other)->aquaColor] && 
[darkAquaColor isEqual:((BDSKDynamicColor *)other)->darkAquaColor];
 }
 

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to