Revision: 27521
http://sourceforge.net/p/bibdesk/svn/27521
Author: hofman
Date: 2022-06-01 23:20:49 +0000 (Wed, 01 Jun 2022)
Log Message:
-----------
Replace relative local file field values by absolute paths when copying for
import/merge
Modified Paths:
--------------
trunk/bibdesk/BibItem.m
Modified: trunk/bibdesk/BibItem.m
===================================================================
--- trunk/bibdesk/BibItem.m 2022-06-01 17:14:49 UTC (rev 27520)
+++ trunk/bibdesk/BibItem.m 2022-06-01 23:20:49 UTC (rev 27521)
@@ -329,6 +329,8 @@
[fieldsToCopy setObject:value forKey:key];
[value release];
} else {
+ if ([key isLocalFileField] && [NSString isEmptyString:value]
== NO && [value hasCaseInsensitivePrefix:@"file://"] == NO && [value
isAbsolutePath] == NO && [[self owner] fileURL])
+ value = [[self localFileURLForField:key] path] ?: value;
[fieldsToCopy setObject:value forKey:key];
}
}];
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