Revision: 28812 http://sourceforge.net/p/bibdesk/svn/28812 Author: hofman Date: 2024-02-24 18:49:57 +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:31:21 UTC (rev 28811) +++ trunk/bibdesk/BDSKLinkedFile.m 2024-02-24 18:49:57 UTC (rev 28812) @@ -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]] absoluteURL] : [NSURL fileURLWithPath:relativePath isDirectory:NO]; + displayURL = basePath ? [NSURL URLWithString:[relativePath stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLPathAllowedCharacterSet]] relativeToURL:[NSURL fileURLWithPath:basePath isDirectory:YES]] : [[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 Bibdesk-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bibdesk-commit