Revision: 28813
http://sourceforge.net/p/bibdesk/svn/28813
Author: hofman
Date: 2024-02-24 18:52:26 +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-24 18:49:57 UTC (rev 28812)
+++ trunk/bibdesk/BDSKLinkedFile.m 2024-02-24 18:52:26 UTC (rev 28813)
@@ -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]
absoluteURL];
+ displayURL = basePath ? [[NSURL URLWithString:[relativePath
stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet
URLPathAllowedCharacterSet]] relativeToURL:[NSURL fileURLWithPath:basePath
isDirectory:YES]] absoluteURL] : [[NSURL fileURLWithPath:relativePath
isDirectory:NO] absoluteURL];
}
return displayURL;
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit