From 7df13127411c9b085921f31ade6e034fa63d7082 Mon Sep 17 00:00:00 2001 From: Konloch Date: Sun, 13 Feb 2022 16:00:21 -0600 Subject: [PATCH] Bug Fix --- .../java/the/bytecode/club/bytecodeviewer/util/MiscUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/util/MiscUtils.java b/src/main/java/the/bytecode/club/bytecodeviewer/util/MiscUtils.java index f152b1a9..335bd4b0 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/util/MiscUtils.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/util/MiscUtils.java @@ -179,7 +179,7 @@ public class MiscUtils public static File autoAppendFileExtension(String extension, File file) { if (!file.getName().endsWith(extension)) - file = new File(file.getName() + extension); + file = new File(file.getAbsolutePath() + extension); return file; }