Revision: 16445
          http://sourceforge.net/p/skim-app/code/16445
Author:   hofman
Date:     2026-09-10 16:45:37 +0000 (Thu, 10 Sep 2026)
Log Message:
-----------
make sure color is not nil

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

Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m      2026-09-10 14:49:41 UTC (rev 16444)
+++ trunk/SKMainWindowController.m      2026-09-10 16:45:37 UTC (rev 16445)
@@ -2667,9 +2667,11 @@
             }
         } else if ([keyPath isEqualToString:SKFullScreenBackgroundColorKey] || 
[keyPath isEqualToString:SKDarkFullScreenBackgroundColorKey]) {
             if ([self interactionMode] == SKFullScreenMode) {
-                NSColor *color = [PDFView defaultFullScreenBackgroundColor];
-                [pdfView setBackgroundColor:color];
-                [secondaryPdfView setBackgroundColor:color];
+                NSColor *backgroundColor = [PDFView 
defaultFullScreenBackgroundColor];
+                if (backgroundColor) {
+                    [pdfView setBackgroundColor:backgroundColor];
+                    [secondaryPdfView setBackgroundColor:backgroundColor];
+                }
             }
         } else if ([keyPath isEqualToString:SKThumbnailSizeKey]) {
             [self resetThumbnailSizeIfNeeded];

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