Fixed worng variable

This commit is contained in:
Jose Luis Cercos-Pita
2014-07-11 18:35:19 +02:00
committed by wmayer
parent e1b387a104
commit 5f49a00b01

View File

@@ -352,7 +352,7 @@ class TaskPanel:
except:
min_draft = 0.9 * self.ship.Draft.getValueAs('m').Value
input_format = USys.getLengthFormat()
qty = Units.Quantity('{} m'.format(draft))
qty = Units.Quantity('{} m'.format(min_draft))
form.minDraft.setText(input_format.format(
qty.getValueAs(USys.getLengthUnits()).Value))
try:
@@ -361,7 +361,7 @@ class TaskPanel:
except:
max_draft = 0.9 * self.ship.Draft.getValueAs('m').Value
input_format = USys.getLengthFormat()
qty = Units.Quantity('{} m'.format(draft))
qty = Units.Quantity('{} m'.format(max_draft))
form.maxDraft.setText(input_format.format(
qty.getValueAs(USys.getLengthUnits()).Value))