Revision: 12579
          http://bibdesk.svn.sourceforge.net/bibdesk/?rev=12579&view=rev
Author:   hofman
Date:     2008-01-19 04:22:05 -0800 (Sat, 19 Jan 2008)

Log Message:
-----------
Display relative path in preview for local file format when filing relative to 
the document.

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

Modified: trunk/bibdesk/BDSKPreviewItem.m
===================================================================
--- trunk/bibdesk/BDSKPreviewItem.m     2008-01-19 06:19:14 UTC (rev 12578)
+++ trunk/bibdesk/BDSKPreviewItem.m     2008-01-19 12:22:05 UTC (rev 12579)
@@ -136,7 +136,10 @@
        NSString *relativeFile = [BDSKFormatParser parseFormat:localFileFormat 
forField:BDSKLocalUrlString ofItem:self];
        if ([pw boolForKey:BDSKLocalFileLowercaseKey])
                relativeFile = [relativeFile lowercaseString];
-    return [[papersFolderPath stringByAppendingPathComponent:relativeFile] 
stringByAbbreviatingWithTildeInPath];
+       if  ([NSString isEmptyString:[pw stringForKey:BDSKPapersFolderPathKey]])
+        return relativeFile;
+    else
+        return [[papersFolderPath stringByAppendingPathComponent:relativeFile] 
stringByAbbreviatingWithTildeInPath];
 }
 
 - (NSString *)suggestedCiteKey {


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

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to