diff --git a/core/resources/l10n/messages.properties b/core/resources/l10n/messages.properties index e67a55d99..87ca28151 100644 --- a/core/resources/l10n/messages.properties +++ b/core/resources/l10n/messages.properties @@ -759,7 +759,7 @@ RocketCompCfg.lbl.Commentsonthe = Comments on the RocketCompCfg.lbl.Figurestyle = Figure style: RocketCompCfg.lbl.Componentcolor = Component color: RocketCompCfg.lbl.Choosecolor = Choose color -RocketCompCfg.checkbox.Usedefaultcolor = Use default +RocketCompCfg.checkbox.Usedefaultcolor = Use default color RocketCompCfg.lbl.Complinestyle = Component line style: RocketCompCfg.but.Saveasdefstyle = Save as default style RocketCompCfg.lbl.Diameter = Diameter: diff --git a/core/src/net/sf/openrocket/document/OpenRocketDocument.java b/core/src/net/sf/openrocket/document/OpenRocketDocument.java index 9a3711d07..133a93a49 100644 --- a/core/src/net/sf/openrocket/document/OpenRocketDocument.java +++ b/core/src/net/sf/openrocket/document/OpenRocketDocument.java @@ -61,6 +61,9 @@ public class OpenRocketDocument implements ComponentChangeListener { private final ArrayList simulations = new ArrayList(); private ArrayList customExpressions = new ArrayList(); + + private DecalRegistry decalRegistry = new DecalRegistry(); + /* * The undo/redo variables and mechanism are documented in doc/undo-redo-flow.* */ @@ -85,7 +88,6 @@ public class OpenRocketDocument implements ComponentChangeListener { private String nextDescription = null; private String storedDescription = null; - private DecalRegistry decalRegistry = new DecalRegistry(); private ArrayList undoRedoListeners = new ArrayList(2); diff --git a/core/src/net/sf/openrocket/gui/main/BasicFrame.java.rej b/core/src/net/sf/openrocket/gui/main/BasicFrame.java.rej deleted file mode 100644 index 39f7bb719..000000000 --- a/core/src/net/sf/openrocket/gui/main/BasicFrame.java.rej +++ /dev/null @@ -1,22 +0,0 @@ -@@ -1087,11 +1086,20 @@ - } - } - -+ if ( filename == null ) { -+ filename = ""; -+ } -+ -+ // Remove path from filename -+ if (filename.lastIndexOf('/') >= 0) { -+ filename = filename.substring(filename.lastIndexOf('/') + 1); -+ } -+ - // Open the file - log.info("Opening file from url=" + url + " filename=" + filename); - try { - InputStream is = url.openStream(); -- if (open(is, url, parent)) { -+ if (open(is, filename, url, parent)) { - // Close previous window if replacing - if (parent.replaceable && parent.document.isSaved()) { - parent.closeAction();