Revision: 28814
          http://sourceforge.net/p/bibdesk/svn/28814
Author:   hofman
Date:     2024-02-24 18:56:44 +0000 (Sat, 24 Feb 2024)
Log Message:
-----------
make sure dragged urls are absolute, otherwise we get an exception

Modified Paths:
--------------
    trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m

Modified: trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m
===================================================================
--- trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m      2024-02-24 
18:52:26 UTC (rev 28813)
+++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m      2024-02-24 
18:56:44 UTC (rev 28814)
@@ -2637,6 +2637,8 @@
         NSRect imageRect = NSUnionRect(iconRect, textRect);
         
         NSURL *dragURL = [self URLAtIndex:i];
+        if ([dragURL baseURL])
+            dragURL = [dragURL absoluteURL];
         NSDraggingItem *dragItem = [[NSDraggingItem alloc] 
initWithPasteboardWriter:dragURL];
         [dragItem setDraggingFrame:imageRect];
         [dragItem setImageComponentsProvider:^{

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

Reply via email to