Revision: 4336
http://skim-app.svn.sourceforge.net/skim-app/?rev=4336&view=rev
Author: hofman
Date: 2008-08-02 18:58:58 +0000 (Sat, 02 Aug 2008)
Log Message:
-----------
Fix convert action in skimnotes tool. Creating a PDF bundle and PDF file was
inverted.
Modified Paths:
--------------
trunk/SkimNotes/skimnotes.m
Modified: trunk/SkimNotes/skimnotes.m
===================================================================
--- trunk/SkimNotes/skimnotes.m 2008-08-01 20:16:20 UTC (rev 4335)
+++ trunk/SkimNotes/skimnotes.m 2008-08-02 18:58:58 UTC (rev 4336)
@@ -298,8 +298,6 @@
} else if (action == SKNActionConvert) {
if (isBundle) {
- success = [fm createDirectoryAtPath:notesPath attributes:nil];
- } else {
NSString *pdfFilePath = nil;
NSArray *files = [fm subpathsAtPath:pdfPath];
NSString *filename = [[[pdfPath lastPathComponent]
stringByDeletingPathExtension] stringByAppendingPathExtension:PDF_EXTENSION];
@@ -310,6 +308,8 @@
if (filename)
pdfFilePath = [pdfPath
stringByAppendingPathComponent:filename];
success = [fm copyPath:pdfFilePath toPath:notesPath
handler:nil];
+ } else {
+ success = [fm createDirectoryAtPath:notesPath attributes:nil];
}
if (success) {
NSData *notesData = [fm SkimNotesAtPath:pdfPath error:&error];
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 the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit