Revision: 13515
http://sourceforge.net/p/skim-app/code/13515
Author: hofman
Date: 2023-06-27 15:26:19 +0000 (Tue, 27 Jun 2023)
Log Message:
-----------
Get integer value rather than double. Addcomment.
Modified Paths:
--------------
trunk/PDFDestination_SKExtensions.m
Modified: trunk/PDFDestination_SKExtensions.m
===================================================================
--- trunk/PDFDestination_SKExtensions.m 2023-06-27 14:28:37 UTC (rev 13514)
+++ trunk/PDFDestination_SKExtensions.m 2023-06-27 15:26:19 UTC (rev 13515)
@@ -51,7 +51,8 @@
CGFloat zoomX = kPDFDestinationUnspecifiedValue, zoomY =
kPDFDestinationUnspecifiedValue;
BOOL override = YES;
NSInteger type = 0;
- @try { type = [[self valueForKeyPath:RUNNING_BEFORE(10_12) ?
@"_pdfPriv.type" : @"_private.type"] doubleValue]; }
+ // 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) {}
switch (type) {
case 0:
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