Revision: 16196
http://sourceforge.net/p/skim-app/code/16196
Author: hofman
Date: 2026-04-19 14:06:51 +0000 (Sun, 19 Apr 2026)
Log Message:
-----------
Don't normalize scale factor when we are setting the scale factor.
Modified Paths:
--------------
trunk/SKSecondaryPDFView.m
trunk/SKSnapshotPDFView.m
Modified: trunk/SKSecondaryPDFView.m
===================================================================
--- trunk/SKSecondaryPDFView.m 2026-04-11 14:25:00 UTC (rev 16195)
+++ trunk/SKSecondaryPDFView.m 2026-04-19 14:06:51 UTC (rev 16196)
@@ -630,7 +630,7 @@
[menuItem setState:[self displaysPageBreaks] ? NSControlStateValueOn :
NSControlStateValueOff];
return YES;
} else if ([menuItem action] == @selector(doActualSize:)) {
- [menuItem setState:fabs([self scaleFactor] - 1.0) > 0.0 ?
NSControlStateValueOff : NSControlStateValueOn];
+ [menuItem setState:[self autoScales] || [self synchronizeZoom] ||
fabs([self scaleFactor] - 1.0) > 0.0 ? NSControlStateValueOff :
NSControlStateValueOn];
return YES;
} else if ([menuItem action] == @selector(doPhysicalSize:)) {
[menuItem setState:([self autoScales] || fabs([self
physicalScaleFactor] - 1.0) > 0.001) ? NSControlStateValueOff :
NSControlStateValueOn];
@@ -764,7 +764,8 @@
return YES;
}
}
- if ([[SKSecondaryPDFView superclass] instancesRespondToSelector:_cmd])
[super writeSelectionToPasteboard:pboard types:types];
+ if ([[SKSecondaryPDFView superclass] instancesRespondToSelector:_cmd])
+ [super writeSelectionToPasteboard:pboard types:types];
return NO;
}
@@ -803,7 +804,7 @@
}
- (void)handlePDFViewScaleChangedNotification:(NSNotification *)notification {
- if ([self autoScales] == NO && [self synchronizeZoom] == NO)
+ if ([self autoScales] == NO && [self synchronizeZoom] == NO && switching
== NO)
[self setScaleFactor:fmax([self scaleFactor],
SKMinDefaultScaleMenuFactor) adjustPopup:YES];
}
Modified: trunk/SKSnapshotPDFView.m
===================================================================
--- trunk/SKSnapshotPDFView.m 2026-04-11 14:25:00 UTC (rev 16195)
+++ trunk/SKSnapshotPDFView.m 2026-04-19 14:06:51 UTC (rev 16196)
@@ -269,7 +269,7 @@
}
- (void)handlePDFViewScaleChangedNotification:(NSNotification *)notification {
- if ([self autoFits] == NO && [self autoScales] == NO)
+ if ([self autoFits] == NO && [self autoScales] == NO && switching == NO)
[self setScaleFactor:fmax([self scaleFactor],
SKMinDefaultScaleMenuFactor) adjustPopup:YES];
}
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