Revision: 27595
          http://sourceforge.net/p/bibdesk/svn/27595
Author:   hofman
Date:     2022-06-09 14:37:36 +0000 (Thu, 09 Jun 2022)
Log Message:
-----------
check for correct type accessor

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

Modified: trunk/bibdesk/BibDocument.m
===================================================================
--- trunk/bibdesk/BibDocument.m 2022-06-09 14:14:38 UTC (rev 27594)
+++ trunk/bibdesk/BibDocument.m 2022-06-09 14:37:36 UTC (rev 27595)
@@ -901,7 +901,7 @@
 
 - (double)doubleForSetupKey:(NSString *)key {
     id value = [[self mainWindowSetupDictionaryFromExtendedAttributes] 
objectForKey:key];
-    return [value respondsToSelector:@selector(boolValue)] ? [value 
doubleValue] : [[NSUserDefaults standardUserDefaults] doubleForKey:key];
+    return [value respondsToSelector:@selector(doubleValue)] ? [value 
doubleValue] : [[NSUserDefaults standardUserDefaults] doubleForKey:key];
 }
 
 - (id)objectForSetupKey:(NSString *)key {
@@ -910,7 +910,7 @@
 
 - (double)doubleForSetupKey:(NSString *)key defaultValue:(double)defaultValue {
     id value = [[self mainWindowSetupDictionaryFromExtendedAttributes] 
objectForKey:key];
-    return [value respondsToSelector:@selector(boolValue)] ? [value 
doubleValue] : defaultValue;
+    return [value respondsToSelector:@selector(doubleValue)] ? [value 
doubleValue] : defaultValue;
 }
 
 - (NSStringEncoding)stringEncodingForSetupKey:(NSString *)key 
defaultValue:(NSStringEncoding)defaultValue {

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