Revision: 15896
          http://sourceforge.net/p/skim-app/code/15896
Author:   hofman
Date:     2025-12-20 17:56:38 +0000 (Sat, 20 Dec 2025)
Log Message:
-----------
always redraw for reading bar defaults change

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

Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m   2025-12-20 17:48:40 UTC (rev 15895)
+++ trunk/SKPDFView.m   2025-12-20 17:56:38 UTC (rev 15896)
@@ -3350,11 +3350,9 @@
     if (context == &SKPDFViewDefaultsObservationContext) {
         if (readingBar) {
             PDFPage *page = [readingBar page];
-            if (page) {
-                [self setNeedsDisplay:([keyPath 
isEqualToString:SKReadingBarInvertKey] || [[NSUserDefaults 
standardUserDefaults] boolForKey:SKReadingBarInvertKey]) 
forReadingBarBounds:[readingBar currentBounds] onPage:page];
-                [[NSNotificationCenter defaultCenter] 
postNotificationName:SKPDFViewReadingBarDidChangeNotification
-                                                                    
object:self userInfo:@{SKPDFViewPageKey: page}];
-            }
+            [self setNeedsDisplay:([keyPath 
isEqualToString:SKReadingBarInvertKey] || [[NSUserDefaults 
standardUserDefaults] boolForKey:SKReadingBarInvertKey]) 
forReadingBarBounds:[readingBar currentBounds] onPage:page];
+            [[NSNotificationCenter defaultCenter] 
postNotificationName:SKPDFViewReadingBarDidChangeNotification
+                                                                object:self 
userInfo:page ? @{SKPDFViewPageKey: page} : nil];
         }
     } else {
         [super observeValueForKeyPath:keyPath ofObject:object change:change 
context:context];

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