Revision: 12943
          http://sourceforge.net/p/skim-app/code/12943
Author:   hofman
Date:     2022-06-25 13:47:06 +0000 (Sat, 25 Jun 2022)
Log Message:
-----------
Make sure intrinsicRotation is cached before page is first rotated, on newer 
systems the rotation is also set on the pageRef.

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

Modified: trunk/SKPDFPage.m
===================================================================
--- trunk/SKPDFPage.m   2022-06-24 14:56:53 UTC (rev 12942)
+++ trunk/SKPDFPage.m   2022-06-25 13:47:06 UTC (rev 12943)
@@ -84,11 +84,19 @@
 }
 
 - (NSInteger)intrinsicRotation {
-    if (intrinsicRotation == 0)
+    if (intrinsicRotation == 0) {
         intrinsicRotation = [super intrinsicRotation] + 360;
+    }
     return intrinsicRotation - 360;
 }
 
+- (void)setRotation:(NSInteger)rotation {
+    if (intrinsicRotation == 0) {
+        intrinsicRotation = [super intrinsicRotation] + 360;
+    }
+    return [super setRotation:rotation];
+}
+
 - (NSInteger)characterDirectionAngle {
     if (characterDirectionAngle == 0)
         characterDirectionAngle = [super characterDirectionAngle] + 360;

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



_______________________________________________
Skim-app-commit mailing list
Skim-app-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to