Revision: 13947
          http://sourceforge.net/p/skim-app/code/13947
Author:   hofman
Date:     2023-12-21 14:56:47 +0000 (Thu, 21 Dec 2023)
Log Message:
-----------
don't drag multiple pages when we cannot save pdf

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

Modified: trunk/SKThumbnailView.m
===================================================================
--- trunk/SKThumbnailView.m     2023-12-20 23:48:48 UTC (rev 13946)
+++ trunk/SKThumbnailView.m     2023-12-21 14:56:47 UTC (rev 13947)
@@ -445,8 +445,9 @@
 - (void)mouseDown:(NSEvent *)theEvent {
     if ([NSApp willDragMouse]) {
         
-        NSIndexSet *draggedIndexes = [self copiedIndexes];
-        id<NSPasteboardWriting> item = [[[self thumbnail] page] 
filePromiseForPageIndexes:draggedIndexes];
+        PDFPage *page = [[self thumbnail] page];
+        NSIndexSet *draggedIndexes = [[page document] allowsPrinting] ? [self 
copiedIndexes] : nil;
+        id<NSPasteboardWriting> item = [page 
filePromiseForPageIndexes:draggedIndexes];
         
         if (item) {
             

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