Revision: 15936
          http://sourceforge.net/p/skim-app/code/15936
Author:   hofman
Date:     2025-12-27 18:01:07 +0000 (Sat, 27 Dec 2025)
Log Message:
-----------
don't notify when no page

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

Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m   2025-12-27 17:59:20 UTC (rev 15935)
+++ trunk/SKPDFView.m   2025-12-27 18:01:07 UTC (rev 15936)
@@ -2907,8 +2907,8 @@
     } else {
         [self setNeedsDisplayInRect:[SKReadingBar bounds:rect forBox:[self 
displayBox] onPage:page] ofPage:page];
     }
-    if (notify)
-        [[NSNotificationCenter defaultCenter] 
postNotificationName:SKPDFViewReadingBarDidChangeNotification object:self 
userInfo:page ? @{SKPDFViewPageKey: page} : nil];
+    if (notify && page)
+        [[NSNotificationCenter defaultCenter] 
postNotificationName:SKPDFViewReadingBarDidChangeNotification object:self 
userInfo:@{SKPDFViewPageKey: page}];
 
 }
 

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