Revision: 4621
          http://skim-app.svn.sourceforge.net/skim-app/?rev=4621&view=rev
Author:   hofman
Date:     2008-09-14 12:07:50 +0000 (Sun, 14 Sep 2008)

Log Message:
-----------
Translate line endpoints from FDF

Modified Paths:
--------------
    trunk/SKFDFParser.m

Modified: trunk/SKFDFParser.m
===================================================================
--- trunk/SKFDFParser.m 2008-09-14 06:50:00 UTC (rev 4620)
+++ trunk/SKFDFParser.m 2008-09-14 12:07:50 UTC (rev 4621)
@@ -332,8 +332,8 @@
     if (success && CGPDFDictionaryGetArray(annot, 
SKFDFAnnotationLinePointsKey, &array)) {
         NSPoint p1, p2;
         if (CGPDFArrayGetCount(array) == 4 && CGPDFArrayGetNumber(array, 0, 
&p1.x) && CGPDFArrayGetNumber(array, 1, &p1.y) && CGPDFArrayGetNumber(array, 2, 
&p2.x) && CGPDFArrayGetNumber(array, 3, &p2.y)) {
-            [dictionary setObject:NSStringFromPoint(p1) 
forKey:SKNPDFAnnotationStartPointKey];
-            [dictionary setObject:NSStringFromPoint(p2) 
forKey:SKNPDFAnnotationEndPointKey];
+            [dictionary setObject:NSStringFromPoint(SKSubstractPoints(p1, 
bounds.origin)) forKey:SKNPDFAnnotationStartPointKey];
+            [dictionary setObject:NSStringFromPoint(SKSubstractPoints(p2, 
bounds.origin)) forKey:SKNPDFAnnotationEndPointKey];
         }
     }
     


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to