Revision: 28319
http://sourceforge.net/p/bibdesk/svn/28319
Author: hofman
Date: 2023-07-16 14:47:33 +0000 (Sun, 16 Jul 2023)
Log Message:
-----------
fall back to local file value
Modified Paths:
--------------
trunk/bibdesk/BibItem.m
Modified: trunk/bibdesk/BibItem.m
===================================================================
--- trunk/bibdesk/BibItem.m 2023-07-16 14:45:24 UTC (rev 28318)
+++ trunk/bibdesk/BibItem.m 2023-07-16 14:47:33 UTC (rev 28319)
@@ -1930,7 +1930,7 @@
value = [value stringByTeXifyingString];
if(redirectRelPaths && [fileKeys containsObject:field] && [value
hasCaseInsensitivePrefix:@"file://"] == NO && [value isAbsolutePath] == NO &&
[[self URLForField:field] checkResourceIsReachableAndReturnError:NULL])
- value = [[[self URLForField:field] path]
relativePathFromPath:basePath];
+ value = [[[self URLForField:field] path]
relativePathFromPath:basePath] ?: value;
// We used to keep empty strings in fields as markers for the
editor; now they're generally nil
BOOL isEmpty = [NSString isEmptyAsComplexString:value];
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