Draft: fix dimensions with decimals=0 problem

The display_external function in units.py did not handle decimals=0 properly.
This commit is contained in:
Roy-043
2021-07-15 06:24:23 +02:00
committed by Bernd Hahnebach
parent a7492d1934
commit 807f61400d
+1 -1
View File
@@ -95,7 +95,7 @@ def display_external(internal_value,
if dim == 'Length':
q = App.Units.Quantity(internal_value, App.Units.Length)
if not unit:
if not decimals and showUnit:
if decimals == None and showUnit:
return q.UserString
conversion = q.getUserPreferred()[1]