Revision: 2618
          http://skim-app.svn.sourceforge.net/skim-app/?rev=2618&view=rev
Author:   hofman
Date:     2007-08-07 04:32:34 -0700 (Tue, 07 Aug 2007)

Log Message:
-----------
Don't correct dragging line endpoints for rotation, as we use page coordinates.

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

Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m   2007-08-07 10:09:03 UTC (rev 2617)
+++ trunk/SKPDFView.m   2007-08-07 11:32:34 UTC (rev 2618)
@@ -2727,26 +2727,8 @@
             startPoint.y = roundf(startPoint.y + NSMinY(wasBounds));
             NSPoint *draggedPoint = draggingStartPoint ? &startPoint : 
&endPoint;
             
-            // Resize the annotation.
-            switch ([page rotation]) {
-                case 0:
-                    draggedPoint->x += relPoint.x;
-                    draggedPoint->y += relPoint.y;
-                    break;
-                case 90:
-                    draggedPoint->x += relPoint.y;
-                    draggedPoint->y -= relPoint.x;
-                    break;
-                case 180:
-                    draggedPoint->x -= relPoint.x;
-                    draggedPoint->y -= relPoint.y;
-                    break;
-                case 270:
-                    draggedPoint->x -= relPoint.y;
-                    draggedPoint->y += relPoint.x;
-                    break;
-            }
-            
+            draggedPoint->x += relPoint.x;
+            draggedPoint->y += relPoint.y;
             if (draggedPoint->x > NSMaxX(pageBounds))
                 draggedPoint->x = NSMaxX(pageBounds);
             else if (draggedPoint->x < NSMinX(pageBounds))


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: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Skim-app-commit mailing list
Skim-app-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to