Revision: 26793
          http://sourceforge.net/p/bibdesk/svn/26793
Author:   hofman
Date:     2021-09-03 15:40:33 +0000 (Fri, 03 Sep 2021)
Log Message:
-----------
Make sure relative path is also updated

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

Modified: trunk/bibdesk/BDSKLinkedFile.m
===================================================================
--- trunk/bibdesk/BDSKLinkedFile.m      2021-09-03 06:30:29 UTC (rev 26792)
+++ trunk/bibdesk/BDSKLinkedFile.m      2021-09-03 15:40:33 UTC (rev 26793)
@@ -764,10 +764,12 @@
             }
             if (needsUpdate) {
                 FSRef baseRef;
-                if (BDSKPathToFSRef(basePath, &baseRef))
+                if (BDSKPathToFSRef(basePath, &baseRef)) {
                     [self updateAliasWithBaseRef:&baseRef];
-                else
+                    [self setRelativePath:aPath fromPath:basePath];
+                } else {
                     [self setAliasWithPath:aPath basePath:basePath];
+                }
             }
         }
     }

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

Reply via email to