Revision: 5933
http://skim-app.svn.sourceforge.net/skim-app/?rev=5933&view=rev
Author: hofman
Date: 2009-10-22 15:57:08 +0000 (Thu, 22 Oct 2009)
Log Message:
-----------
copy contentsValue for new scripting note when supplied
Modified Paths:
--------------
trunk/PDFPage_SKExtensions.m
Modified: trunk/PDFPage_SKExtensions.m
===================================================================
--- trunk/PDFPage_SKExtensions.m 2009-10-22 15:09:41 UTC (rev 5932)
+++ trunk/PDFPage_SKExtensions.m 2009-10-22 15:57:08 UTC (rev 5933)
@@ -468,7 +468,9 @@
FourCharCode type = [[properties
objectForKey:SKPDFAnnotationScriptingNoteTypeKey] unsignedLongValue];
- if (type == 0) {
+ if (contentsValue) {
+ annotation = [contentsValue copy];
+ } else if (type == 0) {
[[NSScriptCommand currentCommand]
setScriptErrorNumber:NSRequiredArgumentsMissingScriptError];
[[NSScriptCommand currentCommand]
setScriptErrorString:NSLocalizedString(@"New notes need a type.", @"Error
description")];
} else if (type == SKScriptingHighlightNote || type ==
SKScriptingStrikeOutNote || type == SKScriptingUnderlineNote) {
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit