Revision: 13456
          http://sourceforge.net/p/skim-app/code/13456
Author:   hofman
Date:     2023-06-08 14:49:05 +0000 (Thu, 08 Jun 2023)
Log Message:
-----------
don't rewind after rotation or box change when not in continuous display

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

Modified: trunk/SKMainWindowController_Actions.m
===================================================================
--- trunk/SKMainWindowController_Actions.m      2023-06-08 14:13:30 UTC (rev 
13455)
+++ trunk/SKMainWindowController_Actions.m      2023-06-08 14:49:05 UTC (rev 
13456)
@@ -510,7 +510,8 @@
     [undoManager setActionName:NSLocalizedString(@"Rotate", @"Undo action 
name")];
     [[self document] undoableActionIsDiscardable];
     
-    [pdfView setNeedsRewind:YES];
+    if (([pdfView displayMode] & kPDFDisplaySinglePageContinuous))
+        [pdfView setNeedsRewind:YES];
     
     for (PDFPage *page in [pdfView document])
         [page setRotation:[page rotation] + rotation];
@@ -563,7 +564,8 @@
 }
 
 - (void)cropPagesToRects:(NSPointerArray *)rects {
-    [pdfView setNeedsRewind:YES];
+    if (([pdfView displayMode] & kPDFDisplaySinglePageContinuous))
+        [pdfView setNeedsRewind:YES];
     
     NSInteger i, count = [[pdfView document] pageCount];
     NSInteger rectCount = [rects count];

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

Reply via email to