Revision: 22358
          http://sourceforge.net/p/bibdesk/svn/22358
Author:   hofman
Date:     2018-06-24 21:53:38 +0000 (Sun, 24 Jun 2018)
Log Message:
-----------
make sure setting absolute url is not a file reference

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

Modified: trunk/bibdesk/BibItem.m
===================================================================
--- trunk/bibdesk/BibItem.m     2018-06-24 21:50:33 UTC (rev 22357)
+++ trunk/bibdesk/BibItem.m     2018-06-24 21:53:38 UTC (rev 22358)
@@ -2747,7 +2747,7 @@
     if ([field isLocalFileField]) {
         switch ([[NSUserDefaults standardUserDefaults] 
integerForKey:BDSKLocalFileOptionKey]) {
             case 0:
-                value = [aURL absoluteString];
+                value = [([aURL isFileReferenceURL] ? [aURL filePathURL] : 
aURL) absoluteString];
                 break;
             case 1:
                 value = [aURL path];

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to