Revision: 16498
http://sourceforge.net/p/skim-app/code/16498
Author: hofman
Date: 2026-09-18 14:05:18 +0000 (Fri, 18 Sep 2026)
Log Message:
-----------
objectValue of note can be nil
Modified Paths:
--------------
trunk/PDFAnnotation_SKExtensions.m
trunk/SKNPDFAnnotationNote_SKExtensions.m
Modified: trunk/PDFAnnotation_SKExtensions.m
===================================================================
--- trunk/PDFAnnotation_SKExtensions.m 2026-09-18 09:19:59 UTC (rev 16497)
+++ trunk/PDFAnnotation_SKExtensions.m 2026-09-18 14:05:18 UTC (rev 16498)
@@ -390,7 +390,7 @@
[self setButtonWidgetState:[newObjectValue integerValue]];
else
[self setWidgetStringValue:newObjectValue];
- } else if ([newObjectValue isKindOfClass:[NSString class]]) {
+ } else if ([newObjectValue isKindOfClass:[NSString class]] ||
newObjectValue == nil) {
[self setString:newObjectValue];
}
}
Modified: trunk/SKNPDFAnnotationNote_SKExtensions.m
===================================================================
--- trunk/SKNPDFAnnotationNote_SKExtensions.m 2026-09-18 09:19:59 UTC (rev
16497)
+++ trunk/SKNPDFAnnotationNote_SKExtensions.m 2026-09-18 14:05:18 UTC (rev
16498)
@@ -179,7 +179,7 @@
if ([newText isKindOfClass:[NSAttributedString class]])
[[self mutableText] replaceCharactersInRange:NSMakeRange(0, [[self
mutableText] length]) withAttributedString:newText];
else
- [[self mutableText] replaceCharactersInRange:NSMakeRange(0, [[self
mutableText] length]) withString:newText];
+ [[self mutableText] replaceCharactersInRange:NSMakeRange(0, [[self
mutableText] length]) withString:newText ?: @""];
}
}
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