Revision: 3300
          http://skim-app.svn.sourceforge.net/skim-app/?rev=3300&view=rev
Author:   hofman
Date:     2007-12-02 13:24:46 -0800 (Sun, 02 Dec 2007)

Log Message:
-----------
Invert a check. Create pdf data object before passing it.

Modified Paths:
--------------
    trunk/SKPSProgressController.m

Modified: trunk/SKPSProgressController.m
===================================================================
--- trunk/SKPSProgressController.m      2007-12-02 21:01:05 UTC (rev 3299)
+++ trunk/SKPSProgressController.m      2007-12-02 21:24:46 UTC (rev 3300)
@@ -288,7 +288,7 @@
         
         NSAssert1([supportedTools containsObject:commandName], @"DVI converter 
%@ is not supported", commandName);
         
-        while ([fm isExecutableFileAtPath:commandPath]) {
+        while ([fm isExecutableFileAtPath:commandPath] == NO) {
             if (i >= count) {
                 commandPath = nil;
                 break;
@@ -320,9 +320,10 @@
     NSMutableData *pdfData = nil;
     
     if (dviToolPath) {
-        NSDictionary *dictionary = [NSDictionary 
dictionaryWithObjectsAndKeys:dviFile, @"dviFile", pdfData, @"pdfData", 
dviToolPath, @"dviToolPath", nil];
         pdfData = [[NSMutableData alloc] init];
         
+        NSDictionary *dictionary = [NSDictionary 
dictionaryWithObjectsAndKeys:dviFile, @"dviFile", pdfData, @"pdfData", 
dviToolPath, @"dviToolPath", nil];
+        
         int rv = [self runModalConversionWithInfo:dictionary];
         
         if (rv != SKConversionSucceeded) {


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

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to