From f2c0e6bbd15b80f6b1e7b5af9ef91c31cd05db8b Mon Sep 17 00:00:00 2001 From: Billy Olsen Date: Sun, 3 Jan 2021 19:40:55 -0700 Subject: [PATCH] Force a .rkt extension rather than .ork on export Exporting the rocket to a rocksim format should use the extension .rkt rather than .ork. However, refactoring the code between save as and export in commit 4924773 in correctly used the .ork extension in the exportAsAction. Fixes #872 Signed-off-by: Billy Olsen --- swing/src/net/sf/openrocket/gui/main/BasicFrame.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swing/src/net/sf/openrocket/gui/main/BasicFrame.java b/swing/src/net/sf/openrocket/gui/main/BasicFrame.java index 2987ded5a..842b8919c 100644 --- a/swing/src/net/sf/openrocket/gui/main/BasicFrame.java +++ b/swing/src/net/sf/openrocket/gui/main/BasicFrame.java @@ -1369,7 +1369,7 @@ public class BasicFrame extends JFrame { ((SwingPreferences) Application.getPreferences()).setDefaultDirectory(chooser.getCurrentDirectory()); - file = FileHelper.forceExtension(file, "ork"); + file = FileHelper.forceExtension(file, "rkt"); if (FileHelper.confirmWrite(file, this) ) { return saveAsRocksim(file); }