Revision: 6783
          http://skim-app.svn.sourceforge.net/skim-app/?rev=6783&view=rev
Author:   hofman
Date:     2010-09-07 20:40:14 +0000 (Tue, 07 Sep 2010)

Log Message:
-----------
reset border style when setting scripting properties when the dash pattern is 
also set

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

Modified: trunk/PDFAnnotation_SKExtensions.m
===================================================================
--- trunk/PDFAnnotation_SKExtensions.m  2010-09-07 14:32:39 UTC (rev 6782)
+++ trunk/PDFAnnotation_SKExtensions.m  2010-09-07 20:40:14 UTC (rev 6783)
@@ -324,6 +324,14 @@
     return properties;
 }
 
+- (void)setScriptingProperties:(NSDictionary *)properties {
+    [super setScriptingProperties:properties];
+    // set the borderStyle afterwards, as this may have been changed when 
setting the dash pattern
+    id style = [properties 
objectForKey:SKPDFAnnotationScriptingBorderStyleKey];
+    if ([style respondsToSelector:@selector(integerValue)] && [properties 
objectForKey:SKNPDFAnnotationDashPatternKey])
+        [self setScriptingBorderStyle:[style integerValue]];
+}
+
 - (FourCharCode)scriptingNoteType {
     return 0;
 }


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

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to