Revision: 15984
http://sourceforge.net/p/skim-app/code/15984
Author: hofman
Date: 2026-01-09 15:38:39 +0000 (Fri, 09 Jan 2026)
Log Message:
-----------
check page is not nil before comparing pageIndex
Modified Paths:
--------------
trunk/SKPDFView.m
Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m 2026-01-09 15:33:01 UTC (rev 15983)
+++ trunk/SKPDFView.m 2026-01-09 15:38:39 UTC (rev 15984)
@@ -829,7 +829,7 @@
- (void)setSelectToolPage:(PDFPage *)page {
if (toolMode == SKToolModeSelect) {
- if (selectionPageIndex != [page pageIndex] || (page == nil &&
selectionPageIndex != NSNotFound))
+ if (selectionPageIndex != (page ? [page pageIndex] : NSNotFound))
[self setNeedsDisplay:YES];
@synchronized (self) {
if (page == nil) {
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