diff --git a/core/src/net/sf/openrocket/preset/xml/MaterialDTO.java b/core/src/net/sf/openrocket/preset/xml/MaterialDTO.java index 7ce9c468d..745dd8acb 100644 --- a/core/src/net/sf/openrocket/preset/xml/MaterialDTO.java +++ b/core/src/net/sf/openrocket/preset/xml/MaterialDTO.java @@ -45,7 +45,6 @@ public class MaterialDTO { density = theDensity; type = theType; uom = theUom; - type.getORMaterialType().getUnitGroup().setDefaultUnit(getUom()); } public String getName() { @@ -70,7 +69,6 @@ public class MaterialDTO { public void setType(final MaterialTypeDTO theType) { type = theType; - type.getORMaterialType().getUnitGroup().setDefaultUnit(getUom()); } public String getUom() { @@ -79,7 +77,6 @@ public class MaterialDTO { public void setUom(final String theUom) { uom = theUom; - type.getORMaterialType().getUnitGroup().setDefaultUnit(theUom); } Material asMaterial() { @@ -104,7 +101,6 @@ public class MaterialDTO { // in SI units, so we need to convert it to SI units Unit uomUnit = type.getORMaterialType().getUnitGroup().getUnit(getUom()); density = uomUnit.fromUnit(density); - //type.getORMaterialType().getUnitGroup().setDefaultUnit(uomUnit); } } }