OSDN Git Service

outputIMGがOFFの時にはGPXファイルの出力先をgpxFolderにする
authoryuuhayashi <hayashi.yuu@gmail.com>
Sun, 25 Sep 2016 00:31:08 +0000 (09:31 +0900)
committeryuuhayashi <hayashi.yuu@gmail.com>
Sun, 25 Sep 2016 00:31:08 +0000 (09:31 +0900)
importPicture/src/osm/jp/gpx/ImportPicture.java

index c3fa5fc..2e51d7c 100644 (file)
@@ -267,8 +267,12 @@ public class ImportPicture extends Thread {
         Node gpx;\r
 \r
         try {\r
-               \r
-            outDir = new File(outDir, imgDir.getName());\r
+               if (params.getProperty(AppParameters.IMG_OUTPUT).equals(Boolean.toString(true))) {\r
+                outDir = new File(outDir, imgDir.getName());\r
+               }\r
+               else {\r
+                outDir = gpxDir;\r
+               }\r
 \r
             for (File gpxFile : this.gpxFiles) {\r
                 String fileName = gpxFile.getName();\r