Revision: 12615 http://sourceforge.net/p/skim-app/code/12615 Author: hofman Date: 2021-12-11 18:34:14 +0000 (Sat, 11 Dec 2021) Log Message: ----------- Use unevaluated arguments for selection to create a new markup note
Modified Paths: -------------- trunk/PDFPage_SKExtensions.m Modified: trunk/PDFPage_SKExtensions.m =================================================================== --- trunk/PDFPage_SKExtensions.m 2021-12-11 10:53:11 UTC (rev 12614) +++ trunk/PDFPage_SKExtensions.m 2021-12-11 18:34:14 UTC (rev 12615) @@ -684,12 +684,11 @@ [props removeObjectForKey:SKNPDFAnnotationTypeKey]; if (type == nil && contentsValue) type = SKNHighlightString; - if ([[self document] allowsNotes] == NO) { [[NSScriptCommand currentCommand] setScriptErrorNumber:NSReceiversCantHandleCommandScriptError]; [[NSScriptCommand currentCommand] setScriptErrorString:@"PDF does not support notes."]; } else if ([type isEqualToString:SKNHighlightString] || [type isEqualToString:SKNStrikeOutString] || [type isEqualToString:SKNUnderlineString ]) { - id selSpec = contentsValue ?: [properties objectForKey:SKPDFAnnotationSelectionSpecifierKey]; + id selSpec = contentsValue ?: [[[[NSScriptCommand currentCommand] arguments] objectForKey:@"KeyDictionary"] objectForKey:SKPDFAnnotationSelectionSpecifierKey]; PDFSelection *selection; NSInteger markupType = 0; [props removeObjectForKey:SKPDFAnnotationSelectionSpecifierKey]; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. _______________________________________________ Skim-app-commit mailing list Skim-app-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/skim-app-commit