Revision: 16661
http://sourceforge.net/p/skim-app/code/16661
Author: hofman
Date: 2026-10-15 16:06:25 +0000 (Thu, 15 Oct 2026)
Log Message:
-----------
no need for variable
Modified Paths:
--------------
trunk/SKBasePDFView.m
Modified: trunk/SKBasePDFView.m
===================================================================
--- trunk/SKBasePDFView.m 2026-10-14 17:10:58 UTC (rev 16660)
+++ trunk/SKBasePDFView.m 2026-10-15 16:06:25 UTC (rev 16661)
@@ -403,8 +403,7 @@
}
- (void)goToFirstPage:(id)sender {
- PDFDisplayMode displayMode = [self displayMode];
- if (displayMode == kPDFDisplaySinglePageContinuous && [self
displayDirection] && [self canGoToFirstPage]) {
+ if ([self displayMode] == kPDFDisplaySinglePageContinuous && [self
displayDirection] && [self canGoToFirstPage]) {
PDFDocument *doc = [self document];
[self horizontallyGoToPage:[doc pageAtIndex:0] action:_cmd];
} else {
@@ -413,8 +412,7 @@
}
- (void)goToLastPage:(id)sender {
- PDFDisplayMode displayMode = [self displayMode];
- if (displayMode == kPDFDisplaySinglePageContinuous && [self
displayDirection] && [self canGoToLastPage]) {
+ if ([self displayMode] == kPDFDisplaySinglePageContinuous && [self
displayDirection] && [self canGoToLastPage]) {
PDFDocument *doc = [self document];
[self horizontallyGoToPage:[doc pageAtIndex:[doc pageCount] - 1]
action:_cmd];
} else {
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