Arch: Fixed wrong strucutral presets

This commit is contained in:
Yorik van Havre
2017-11-03 12:28:29 -02:00
parent 6e086b1c59
commit 3bd9846428

View File

@@ -373,7 +373,7 @@ class _CommandStructure:
else:
self.dents.form.hide()
else:
p=elt[0]
p=elt[0]-1 # Presets indexes are 1-based
self.vLength.setText(FreeCAD.Units.Quantity(float(Presets[p][4]),FreeCAD.Units.Length).UserString)
self.vWidth.setText(FreeCAD.Units.Quantity(float(Presets[p][5]),FreeCAD.Units.Length).UserString)
self.Profile = Presets[p]