[Schmitzm-commits] r126 - trunk/src/schmitzm/io

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Sat May 23 17:21:29 CEST 2009


Author: alfonx
Date: 2009-05-23 17:21:28 +0200 (Sat, 23 May 2009)
New Revision: 126

Modified:
   trunk/src/schmitzm/io/IOUtil.java
Log:
* Atlas can now open PDF that are not in JARs and are linked via pdf://../../../asd.pdf

Modified: trunk/src/schmitzm/io/IOUtil.java
===================================================================
--- trunk/src/schmitzm/io/IOUtil.java	2009-05-23 11:33:59 UTC (rev 125)
+++ trunk/src/schmitzm/io/IOUtil.java	2009-05-23 15:21:28 UTC (rev 126)
@@ -468,8 +468,8 @@
 		File f;
 		try {
 			f = new File(url.toURI());
-		} catch (URISyntaxException e) {
-			f = new File(url.getPath());
+		} catch (Exception e) {
+			f = new File(url.getPath().replace("%20", " "));
 		}
 		LOGGER.debug("        to " + f.toString());
 		return f;



More information about the Schmitzm-commits mailing list