Revision: 14611
http://sourceforge.net/p/skim-app/code/14611
Author: hofman
Date: 2024-10-29 17:37:45 +0000 (Tue, 29 Oct 2024)
Log Message:
-----------
revert change, allow default anchored note which draws its image
Modified Paths:
--------------
trunk/SKNPDFAnnotationNote_SKExtensions.m
Modified: trunk/SKNPDFAnnotationNote_SKExtensions.m
===================================================================
--- trunk/SKNPDFAnnotationNote_SKExtensions.m 2024-10-29 17:36:30 UTC (rev
14610)
+++ trunk/SKNPDFAnnotationNote_SKExtensions.m 2024-10-29 17:37:45 UTC (rev
14611)
@@ -67,7 +67,14 @@
- (void)setDefaultSkimNoteProperties {
[self setColor:[[NSUserDefaults standardUserDefaults]
colorForKey:SKAnchoredNoteColorKey]];
- [self setIconType:MAX(6, [[NSUserDefaults standardUserDefaults]
integerForKey:SKAnchoredNoteIconTypeKey])];
+ PDFTextAnnotationIconType iconType = [[NSUserDefaults
standardUserDefaults] integerForKey:SKAnchoredNoteIconTypeKey];
+ if (iconType == kSKNPDFTextAnnotationIconImage) {
+ [self setIconType:iconType];
+ [self setDrawsImage:YES];
+ } else {
+ [self setIconType:kPDFTextAnnotationIconNote];
+ [self setDrawsImage:NO];
+ }
[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