Updates and fixed to preset handling
[debian/openrocket] / core / src / net / sf / openrocket / rocketcomponent / SymmetricComponent.java
index d2add38449db1d3539a921893446a6c8cca8e951..4e8893941d815d0b172e650fcd399597d83085d1 100644 (file)
@@ -148,10 +148,10 @@ public abstract class SymmetricComponent extends BodyComponent implements Radial
 
        @Override
        protected void loadFromPreset(ComponentPreset preset) {
-               if ( preset.containsKey(ComponentPreset.THICKNESS) ) {
+               if ( preset.has(ComponentPreset.THICKNESS) ) {
                        this.setThickness(preset.get(ComponentPreset.THICKNESS));
                }
-               if ( preset.containsKey(ComponentPreset.FILLED)) {
+               if ( preset.has(ComponentPreset.FILLED)) {
                        this.setFilled(preset.get(ComponentPreset.FILLED));
                }