Revision: 14149
http://sourceforge.net/p/skim-app/code/14149
Author: hofman
Date: 2024-03-27 10:06:40 +0000 (Wed, 27 Mar 2024)
Log Message:
-----------
hidden preference to ignore zoom in destination
Modified Paths:
--------------
trunk/SKBasePDFView.m
Modified: trunk/SKBasePDFView.m
===================================================================
--- trunk/SKBasePDFView.m 2024-03-26 22:39:56 UTC (rev 14148)
+++ trunk/SKBasePDFView.m 2024-03-27 10:06:40 UTC (rev 14149)
@@ -49,8 +49,7 @@
static char SKBasePDFViewDefaultsObservationContext;
-// don't use the constant, which is only defined on 10.13+
-#define kPDFDestinationUnspecifiedValue FLT_MAX
+#define SKIgnoreDestinationZoomKey @"SKIgnoreDestinationZoom"
#if SDK_BEFORE_10_14
@interface PDFView (SKMojaveDeclarations)
@@ -305,7 +304,7 @@
- (void)goToDestination:(PDFDestination *)destination {
destination = [destination effectiveDestinationForView:self];
- if ([destination zoom] < kPDFDestinationUnspecifiedValue && [destination
zoom] > 0.0)
+ if ([destination zoom] < kPDFDestinationUnspecifiedValue && [destination
zoom] > 0.0 && [[NSUserDefaults standardUserDefaults]
boolForKey:SKIgnoreDestinationZoomKey] == NO)
[self setScaleFactor:[destination zoom]];
[super goToDestination:destination];
}
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