Revision: 7414
          http://skim-app.svn.sourceforge.net/skim-app/?rev=7414&view=rev
Author:   hofman
Date:     2011-08-01 23:54:19 +0000 (Mon, 01 Aug 2011)

Log Message:
-----------
revert last commit as I'm not sure if PDFKit defines rotation in lion

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

Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m   2011-08-01 23:30:41 UTC (rev 7413)
+++ trunk/SKPDFView.m   2011-08-01 23:54:19 UTC (rev 7414)
@@ -1550,15 +1550,11 @@
 - (void)rotateWithEvent:(NSEvent *)theEvent {
     if (interactionMode == SKPresentationMode)
         return;
-    if (floor(NSAppKitVersionNumber) <= NSAppKitVersionNumber10_6) {
-        if ([theEvent respondsToSelector:@selector(rotation)])
-            gestureRotation -= [theEvent rotation];
-        if (fabs(gestureRotation) > 45.0 && gesturePageIndex != NSNotFound) {
-            [self rotatePageAtIndex:gesturePageIndex by:90.0 * 
round(gestureRotation / 90.0)];
-            gestureRotation -= 90.0 * round(gestureRotation / 90.0);
-        }
-    } else if ([[SKPDFView superclass] instancesRespondToSelector:_cmd]) {
-        [super rotateWithEvent:theEvent];
+    if ([theEvent respondsToSelector:@selector(rotation)])
+        gestureRotation -= [theEvent rotation];
+    if (fabs(gestureRotation) > 45.0 && gesturePageIndex != NSNotFound) {
+        [self rotatePageAtIndex:gesturePageIndex by:90.0 * 
round(gestureRotation / 90.0)];
+        gestureRotation -= 90.0 * round(gestureRotation / 90.0);
     }
 }
 


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

------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to