Revision: 13818
http://sourceforge.net/p/skim-app/code/13818
Author: hofman
Date: 2023-11-30 23:40:47 +0000 (Thu, 30 Nov 2023)
Log Message:
-----------
check referenced object rather than pointer to it
Modified Paths:
--------------
trunk/SkimNotes/SKNUtilities.m
Modified: trunk/SkimNotes/SKNUtilities.m
===================================================================
--- trunk/SkimNotes/SKNUtilities.m 2023-11-30 15:44:43 UTC (rev 13817)
+++ trunk/SkimNotes/SKNUtilities.m 2023-11-30 23:40:47 UTC (rev 13818)
@@ -187,7 +187,7 @@
array = [[NSArray alloc] initWithObjects:[NSNumber
numberWithDouble:r], [NSNumber numberWithDouble:g], [NSNumber
numberWithDouble:b], [NSNumber numberWithDouble:a], nil];
}
#endif
- if (colors == NULL)
+ if (*colors == nil)
*colors = [[NSMapTable alloc]
initWithKeyOptions:NSPointerFunctionsStrongMemory |
NSPointerFunctionsObjectPersonality valueOptions:NSPointerFunctionsStrongMemory
| NSPointerFunctionsObjectPersonality capacity:0];
[*colors setObject:array forKey:color];
} else {
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit