Revision: 25502 http://sourceforge.net/p/bibdesk/svn/25502 Author: hofman Date: 2021-01-29 15:37:47 +0000 (Fri, 29 Jan 2021) Log Message: ----------- Don't require pdf page when the document is locked, it will always be null in that case
Modified Paths: -------------- trunk/bibdesk_vendorsrc/amaxwell/FileView/FVPDFIcon.m Modified: trunk/bibdesk_vendorsrc/amaxwell/FileView/FVPDFIcon.m =================================================================== --- trunk/bibdesk_vendorsrc/amaxwell/FileView/FVPDFIcon.m 2021-01-29 15:28:12 UTC (rev 25501) +++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FVPDFIcon.m 2021-01-29 15:37:47 UTC (rev 25502) @@ -350,7 +350,7 @@ // always want _thumbnail for the fast drawing path if (FVShouldDrawFullImageWithThumbnailSize(size, _thumbnailSize)) - exitEarly = (NULL != _pdfDoc && NULL != _pdfPage && NULL != _thumbnail); + exitEarly = (NULL != _pdfDoc && (NULL != _pdfPage || _isLocked) && NULL != _thumbnail); else exitEarly = (NULL != _thumbnail); @@ -478,7 +478,7 @@ if ([self tryLock]) { // If we're drawing full size, don't bother loading the thumbnail if we have a PDFPage. It can be quicker just to draw the page if the document is already loaded, rather than loading the thumbnail from cache. if (FVShouldDrawFullImageWithThumbnailSize(size, _thumbnailSize)) - needsRender = (NULL == _pdfPage); + needsRender = (NULL == _pdfPage) && (_pdfDoc == NULL || _isLocked == NO); else needsRender = (NULL == _thumbnail); [self unlock]; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. _______________________________________________ Bibdesk-commit mailing list Bibdesk-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bibdesk-commit