harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apavle...@apache.org
Subject svn commit: r595234 - /harmony/enhanced/classlib/trunk/modules/print/src/main/java/windows/org/apache/harmony/x/print/WinPrintJob.java
Date Thu, 15 Nov 2007 08:17:11 GMT
Author: apavlenko
Date: Thu Nov 15 00:17:10 2007
New Revision: 595234

URL: http://svn.apache.org/viewvc?rev=595234&view=rev
Log:
Fixed destination path parsing

Modified:
    harmony/enhanced/classlib/trunk/modules/print/src/main/java/windows/org/apache/harmony/x/print/WinPrintJob.java

Modified: harmony/enhanced/classlib/trunk/modules/print/src/main/java/windows/org/apache/harmony/x/print/WinPrintJob.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/print/src/main/java/windows/org/apache/harmony/x/print/WinPrintJob.java?rev=595234&r1=595233&r2=595234&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/print/src/main/java/windows/org/apache/harmony/x/print/WinPrintJob.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/print/src/main/java/windows/org/apache/harmony/x/print/WinPrintJob.java
Thu Nov 15 00:17:10 2007
@@ -30,6 +30,7 @@
 import java.awt.print.Paper;
 import java.awt.print.Printable;
 import java.awt.print.PrinterException;
+import java.io.File;
 import java.io.IOException;
 import java.net.URL;
 import java.util.ArrayList;
@@ -479,7 +480,8 @@
             if (attrs != null) {
                 final Destination dest = (Destination) attrs
                                 .get(Destination.class);
-                return dest != null ? dest.getURI().getPath() : null;
+                return dest != null ? new File(dest.getURI()).getAbsolutePath()
+                                : null;
             }
             return null;
         }



Mime
View raw message