Revision: 13679
http://sourceforge.net/p/skim-app/code/13679
Author: hofman
Date: 2023-10-16 22:01:19 +0000 (Mon, 16 Oct 2023)
Log Message:
-----------
use rotated view bounds for special destinations on rotated pages
Modified Paths:
--------------
trunk/PDFDestination_SKExtensions.m
Modified: trunk/PDFDestination_SKExtensions.m
===================================================================
--- trunk/PDFDestination_SKExtensions.m 2023-10-15 21:15:58 UTC (rev 13678)
+++ trunk/PDFDestination_SKExtensions.m 2023-10-16 22:01:19 UTC (rev 13679)
@@ -54,6 +54,8 @@
CGFloat zoomX = kPDFDestinationUnspecifiedValue, zoomY =
kPDFDestinationUnspecifiedValue;
BOOL override = YES;
NSInteger type = 0;
+ if (([page rotation] % 180) != 0)
+ size = NSMakeSize(size.height, size.width);
// the -type property always returns 0, and not the value from the ivar
@try { type = [[self valueForKeyPath:RUNNING_BEFORE(10_12) ?
@"_pdfPriv.type" : @"_private.type"] integerValue]; }
@catch (id e) {}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit