Fixed worng variable
This commit is contained in:
parent
e1b387a104
commit
5f49a00b01
|
@ -352,7 +352,7 @@ class TaskPanel:
|
||||||
except:
|
except:
|
||||||
min_draft = 0.9 * self.ship.Draft.getValueAs('m').Value
|
min_draft = 0.9 * self.ship.Draft.getValueAs('m').Value
|
||||||
input_format = USys.getLengthFormat()
|
input_format = USys.getLengthFormat()
|
||||||
qty = Units.Quantity('{} m'.format(draft))
|
qty = Units.Quantity('{} m'.format(min_draft))
|
||||||
form.minDraft.setText(input_format.format(
|
form.minDraft.setText(input_format.format(
|
||||||
qty.getValueAs(USys.getLengthUnits()).Value))
|
qty.getValueAs(USys.getLengthUnits()).Value))
|
||||||
try:
|
try:
|
||||||
|
@ -361,7 +361,7 @@ class TaskPanel:
|
||||||
except:
|
except:
|
||||||
max_draft = 0.9 * self.ship.Draft.getValueAs('m').Value
|
max_draft = 0.9 * self.ship.Draft.getValueAs('m').Value
|
||||||
input_format = USys.getLengthFormat()
|
input_format = USys.getLengthFormat()
|
||||||
qty = Units.Quantity('{} m'.format(draft))
|
qty = Units.Quantity('{} m'.format(max_draft))
|
||||||
form.maxDraft.setText(input_format.format(
|
form.maxDraft.setText(input_format.format(
|
||||||
qty.getValueAs(USys.getLengthUnits()).Value))
|
qty.getValueAs(USys.getLengthUnits()).Value))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user