Revision: 14909
          http://sourceforge.net/p/skim-app/code/14909
Author:   hofman
Date:     2025-01-31 22:41:22 +0000 (Fri, 31 Jan 2025)
Log Message:
-----------
Fix range specifiers in all arguments of create command, also 'with data' 
argument

Modified Paths:
--------------
    trunk/SKCreateCommand.m

Modified: trunk/SKCreateCommand.m
===================================================================
--- trunk/SKCreateCommand.m     2025-01-31 18:24:30 UTC (rev 14908)
+++ trunk/SKCreateCommand.m     2025-01-31 22:41:22 UTC (rev 14909)
@@ -46,6 +46,9 @@
     if ([object isKindOfClass:[NSArray class]]) {
         for (id subobject in (NSArray *)object)
             fixRangeSpecifiers(subobject);
+    } else if ([object isKindOfClass:[NSDictionary class]]) {
+        for (id subobject in [object allValues])
+            fixRangeSpecifiers(subobject);
     } else if ([object isKindOfClass:[NSScriptObjectSpecifier class]]) {
         fixRangeSpecifiers([(NSScriptObjectSpecifier *)object 
containerSpecifier]);
         if ([object isKindOfClass:[NSRangeSpecifier class]]) {
@@ -64,7 +67,7 @@
 }
 
 - (void)setArguments:(NSDictionary *)args {
-    fixRangeSpecifiers([[args objectForKey:@"KeyDictionary"] allValues]);
+    fixRangeSpecifiers(args);
     [super setArguments:args];
 }
 

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



_______________________________________________
Skim-app-commit mailing list
Skim-app-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to