Revision: 2614
          http://skim-app.svn.sourceforge.net/skim-app/?rev=2614&view=rev
Author:   hofman
Date:     2007-08-06 09:10:44 -0700 (Mon, 06 Aug 2007)

Log Message:
-----------
Don't generate thumbnails when the PDF is locked, as it won't have content.

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

Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m      2007-08-06 15:01:22 UTC (rev 2613)
+++ trunk/SKMainWindowController.m      2007-08-06 16:10:44 UTC (rev 2614)
@@ -965,7 +965,7 @@
 - (id)objectInThumbnailsAtIndex:(unsigned)theIndex {
     SKThumbnail *thumbnail = [thumbnails objectAtIndex:theIndex];
     
-    if ([thumbnail isDirty] && NO == isAnimating && NO == [thumbnailTableView 
isScrolling]) {
+    if ([thumbnail isDirty] && NO == isAnimating && NO == [thumbnailTableView 
isScrolling] && [[pdfView document] isLocked] == NO) {
         
         NSSize newSize, oldSize = [[thumbnail image] size];
         PDFDocument *pdfDoc = [pdfView document];


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Skim-app-commit mailing list
Skim-app-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to