Revision: 15223
          http://sourceforge.net/p/skim-app/code/15223
Author:   hofman
Date:     2025-05-16 21:31:28 +0000 (Fri, 16 May 2025)
Log Message:
-----------
revert last 2 commits

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

Modified: trunk/SKPresentationView.m
===================================================================
--- trunk/SKPresentationView.m  2025-05-16 21:29:21 UTC (rev 15222)
+++ trunk/SKPresentationView.m  2025-05-16 21:31:28 UTC (rev 15223)
@@ -436,8 +436,6 @@
 - (void)viewWillStartLiveResize {
     [super viewWillStartLiveResize];
     [self removePredrawnImageAtIndex:NSNotFound];
-    if (pvFlags.autoScales == NO)
-        [pageLayer setContentsGravity:kCAGravityCenter];
 }
 
 - (void)viewDidEndLiveResize {
@@ -444,8 +442,6 @@
     [super viewDidEndLiveResize];
     [self removePredrawnImageAtIndex:NSNotFound];
     [self displayCurrentPage:nil];
-    if (pvFlags.autoScales == NO)
-        [pageLayer setContentsGravity:kCAGravityResizeAspectFill];
 }
 
 - (void)updatedAnnotationOnPage:(PDFPage *)aPage {
@@ -543,6 +539,7 @@
 - (void)setAutoScales:(BOOL)flag {
     if (flag != pvFlags.autoScales) {
         pvFlags.autoScales = flag;
+        [pageLayer setContentsGravity:flag ? kCAGravityResizeAspectFill : 
kCAGravityCenter];
         [self removePredrawnImageAtIndex:NSNotFound];
         [self displayCurrentPage:nil];
         [[NSNotificationCenter defaultCenter] 
postNotificationName:SKPresentationViewAutoScalesChangedNotification 
object:self];

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