Revision: 5170
          http://sourceforge.net/p/jump-pilot/code/5170
Author:   edso
Date:     2016-11-06 20:58:16 +0000 (Sun, 06 Nov 2016)
Log Message:
-----------
only concatenate path if the file name is _not_ absolute

Modified Paths:
--------------
    core/trunk/src/org/openjump/core/ui/plugin/file/open/JFCWithEnterAction.java

Modified: 
core/trunk/src/org/openjump/core/ui/plugin/file/open/JFCWithEnterAction.java
===================================================================
--- 
core/trunk/src/org/openjump/core/ui/plugin/file/open/JFCWithEnterAction.java    
    2016-11-06 17:26:22 UTC (rev 5169)
+++ 
core/trunk/src/org/openjump/core/ui/plugin/file/open/JFCWithEnterAction.java    
    2016-11-06 20:58:16 UTC (rev 5170)
@@ -78,7 +78,7 @@
       String filename = (String) getFileName.invoke(getUI());
       if (filename != null && !filename.isEmpty()) {
         file = new File(filename);
-        if (file.getParentFile() == null)
+        if (!file.isAbsolute())
           file = new File(getCurrentDirectory(), filename);
         return file;
       }


------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Jump-pilot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to