From d8be8c3fa6cc796d9027b83de33d70fb6d121fe0 Mon Sep 17 00:00:00 2001 From: kruland2607 Date: Thu, 12 Apr 2012 16:50:18 +0000 Subject: [PATCH] Don't use setThickness or setFilled from the loadFromPreset since these have side effects of clearing the preset. git-svn-id: https://openrocket.svn.sourceforge.net/svnroot/openrocket/trunk@543 180e2498-e6e9-4542-8430-84ac67f01cd8 --- .../sf/openrocket/rocketcomponent/SymmetricComponent.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/net/sf/openrocket/rocketcomponent/SymmetricComponent.java b/core/src/net/sf/openrocket/rocketcomponent/SymmetricComponent.java index 3342f6f1..6571aeb9 100644 --- a/core/src/net/sf/openrocket/rocketcomponent/SymmetricComponent.java +++ b/core/src/net/sf/openrocket/rocketcomponent/SymmetricComponent.java @@ -149,11 +149,11 @@ public abstract class SymmetricComponent extends BodyComponent implements Radial @Override protected void loadFromPreset(ComponentPreset preset) { if ( preset.has(ComponentPreset.THICKNESS) ) { - this.setThickness(preset.get(ComponentPreset.THICKNESS)); + this.thickness = preset.get(ComponentPreset.THICKNESS); + this.filled = false; } if ( preset.has(ComponentPreset.FILLED)) { - // FIXME - this doesn't seem to work for nose cones. - this.setFilled(preset.get(ComponentPreset.FILLED)); + this.filled = true; } super.loadFromPreset(preset); -- 2.47.2