Revision: 12108
          http://sourceforge.net/p/skim-app/code/12108
Author:   hofman
Date:     2021-01-19 10:13:01 +0000 (Tue, 19 Jan 2021)
Log Message:
-----------
Fix opening locked files that report zero pages

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

Modified: trunk/ReleaseNotes.rtf
===================================================================
--- trunk/ReleaseNotes.rtf      2021-01-18 10:50:01 UTC (rev 12107)
+++ trunk/ReleaseNotes.rtf      2021-01-19 10:13:01 UTC (rev 12108)
@@ -348,6 +348,7 @@
 {\listtext     \uc0\u8226      }Allow typing scale without percent sign.\
 {\listtext     \uc0\u8226      }Bold search term in search results.\
 {\listtext     \uc0\u8226      }No support for legacy full screen mode.\
+{\listtext     \uc0\u8226      }Fix for opening licked PDFs.\
 \pard\tx560\tx1440\tx2880\tx4320\tx5760\tx7200\partightenfactor0
 
 \f2\b\fs28 \cf2 \

Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m      2021-01-18 10:50:01 UTC (rev 12107)
+++ trunk/SKMainWindowController.m      2021-01-19 10:13:01 UTC (rev 12108)
@@ -698,6 +698,10 @@
 }
 
 - (void)updatePageColumnWidthForTableViews:(NSArray *)tvs {
+    // this may happen for locked PDFs, nothing to do in this case
+    if ([pageLabels count] == 0)
+        return;
+    
     NSTableView *tv = [tvs firstObject];
     NSTableColumn *tableColumn = [tv tableColumnWithIdentifier:PAGE_COLUMNID];
     id cell = [tableColumn dataCell];

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