Skip to content

Commit

Permalink
Draft: fix dimensions with decimals=0 problem
Browse files Browse the repository at this point in the history
The display_external function in units.py did not handle decimals=0 properly.
  • Loading branch information
Roy-043 authored and berndhahnebach committed Jul 15, 2021
1 parent a7492d1 commit 807f614
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mod/Draft/draftutils/units.py
Expand Up @@ -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]
Expand Down

0 comments on commit 807f614

Please sign in to comment.