Revision: 5937
http://skim-app.svn.sourceforge.net/skim-app/?rev=5937&view=rev
Author: hofman
Date: 2009-10-22 19:52:06 +0000 (Thu, 22 Oct 2009)
Log Message:
-----------
add new scripting notes in center of page by default
Modified Paths:
--------------
trunk/PDFPage_SKExtensions.m
Modified: trunk/PDFPage_SKExtensions.m
===================================================================
--- trunk/PDFPage_SKExtensions.m 2009-10-22 17:35:50 UTC (rev 5936)
+++ trunk/PDFPage_SKExtensions.m 2009-10-22 19:52:06 UTC (rev 5937)
@@ -463,9 +463,10 @@
PDFAnnotation *annotation = nil;
NSMutableDictionary *props = [[properties mutableCopy] autorelease];
- NSRect bounds = NSMakeRect(100.0, 100.0, 0.0, 0.0);
+ NSRect bounds = NSZeroRect;
bounds.size.width = [[NSUserDefaults standardUserDefaults]
floatForKey:SKDefaultNoteWidthKey];
bounds.size.height = [[NSUserDefaults standardUserDefaults]
floatForKey:SKDefaultNoteHeightKey];
+ bounds =
NSIntegralRect(SKRectFromCenterAndSize(SKIntegralPoint(SKCenterPoint([self
boundsForBox:kPDFDisplayBoxCropBox])), bounds.size));
FourCharCode type = [[properties
objectForKey:SKPDFAnnotationScriptingNoteTypeKey] unsignedLongValue];
[props removeObjectForKey:SKPDFAnnotationScriptingNoteTypeKey];
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