Revision: 14609
          http://sourceforge.net/p/skim-app/code/14609
Author:   hofman
Date:     2024-10-29 17:24:59 +0000 (Tue, 29 Oct 2024)
Log Message:
-----------
Don't support image anchored note by default, as this will make all old notes 
drawing the image as the flag won't be overridden

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

Modified: trunk/SKNPDFAnnotationNote_SKExtensions.m
===================================================================
--- trunk/SKNPDFAnnotationNote_SKExtensions.m   2024-10-29 17:21:15 UTC (rev 
14608)
+++ trunk/SKNPDFAnnotationNote_SKExtensions.m   2024-10-29 17:24:59 UTC (rev 
14609)
@@ -67,14 +67,7 @@
 
 - (void)setDefaultSkimNoteProperties {
     [self setColor:[[NSUserDefaults standardUserDefaults] 
colorForKey:SKAnchoredNoteColorKey]];
-    PDFTextAnnotationIconType iconType = [[NSUserDefaults 
standardUserDefaults] integerForKey:SKAnchoredNoteIconTypeKey];
-    if (iconType == kSKNPDFTextAnnotationIconImage) {
-        [self setIconType:iconType];
-        [self setDrawsImage:YES];
-    } else {
-        [self setIconType:kPDFTextAnnotationIconNote];
-        [self setDrawsImage:NO];
-    }
+    [self setIconType:MAX(6, [[NSUserDefaults standardUserDefaults] 
integerForKey:SKAnchoredNoteIconTypeKey])];
     [self setTexts:@[[[SKNoteText alloc] initWithNote:self]]];
     [self setPopup:nil];
 }

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

Reply via email to