Revision: 14617
          http://sourceforge.net/p/skim-app/code/14617
Author:   hofman
Date:     2024-10-30 23:32:03 +0000 (Wed, 30 Oct 2024)
Log Message:
-----------
Set icontype when not drawing image

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

Modified: trunk/SKNPDFAnnotationNote_SKExtensions.m
===================================================================
--- trunk/SKNPDFAnnotationNote_SKExtensions.m   2024-10-30 22:56:12 UTC (rev 
14616)
+++ trunk/SKNPDFAnnotationNote_SKExtensions.m   2024-10-30 23:32:03 UTC (rev 
14617)
@@ -69,10 +69,10 @@
     [self setColor:[[NSUserDefaults standardUserDefaults] 
colorForKey:SKAnchoredNoteColorKey]];
     PDFTextAnnotationIconType iconType = [[NSUserDefaults 
standardUserDefaults] integerForKey:SKAnchoredNoteIconTypeKey];
     if (iconType == kSKNPDFTextAnnotationIconImage) {
-        [self setIconType:iconType];
+        [self setIconType:kPDFTextAnnotationIconNote];
         [self setDrawsImage:YES];
     } else {
-        [self setIconType:kPDFTextAnnotationIconNote];
+        [self setIconType:iconType];
         [self setDrawsImage:NO];
     }
     [self setTexts:@[[[SKNoteText alloc] initWithNote:self]]];

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