Revision: 28811
          http://sourceforge.net/p/bibdesk/svn/28811
Author:   hofman
Date:     2024-02-24 18:31:21 +0000 (Sat, 24 Feb 2024)
Log Message:
-----------
Make URL absolute for fileview. Dragging relative URLs leads to an exception.

Modified Paths:
--------------
    trunk/bibdesk/BDSKLinkedFile.m

Modified: trunk/bibdesk/BDSKLinkedFile.m
===================================================================
--- trunk/bibdesk/BDSKLinkedFile.m      2024-02-23 23:25:53 UTC (rev 28810)
+++ trunk/bibdesk/BDSKLinkedFile.m      2024-02-24 18:31:21 UTC (rev 28811)
@@ -475,7 +475,7 @@
     NSURL *displayURL = [self URL];
     if (displayURL == nil && relativePath) {
         NSString *basePath = [delegate basePathForLinkedFile:self];
-        displayURL = basePath ? [NSURL URLWithString:[relativePath 
stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet 
URLPathAllowedCharacterSet]] relativeToURL:[NSURL fileURLWithPath:basePath 
isDirectory:YES]] : [NSURL fileURLWithPath:relativePath isDirectory:NO];
+        displayURL = basePath ? [[NSURL URLWithString:[relativePath 
stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet 
URLPathAllowedCharacterSet]] relativeToURL:[NSURL fileURLWithPath:basePath 
isDirectory:YES]] absoluteURL] : [NSURL fileURLWithPath:relativePath 
isDirectory:NO];
     }
     return displayURL;
 }

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