From a604aeff6c0b3de01d4322a99d6681f76b46ddf5 Mon Sep 17 00:00:00 2001 From: tkellner Date: Thu, 10 Oct 2013 13:12:01 +0000 Subject: Get correct input folder for relative filenames git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@477 174cde9d-5d70-4d2a-aa98-46368bc2aaf7 --- .../src/main/java/at/asit/pdfover/gui/composites/OutputComposite.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pdf-over-gui/src/main/java') diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/OutputComposite.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/OutputComposite.java index 5725bf6e..76efb41f 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/OutputComposite.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/OutputComposite.java @@ -217,7 +217,7 @@ public class OutputComposite extends StateComposite { * If not (or if directory unavailable), ask user for location. */ public void saveDocument() { - File inputFolder = getInputFile().getParentFile(); + File inputFolder = getInputFile().getAbsoluteFile().getParentFile(); String fileName = getInputFile().getName(); String proposedName = getSignedFileName(fileName); String outputFileName; -- cgit v1.2.3