mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 09:21:46 +00:00
fix #3792
This commit is contained in:
@@ -180,6 +180,14 @@ def format_distance(
|
||||
frac = 0
|
||||
inches += 1
|
||||
|
||||
# Check values and compose string
|
||||
if inches == 12:
|
||||
if unit_length == "INCHES":
|
||||
inches = 12
|
||||
if unit_length == "FEET":
|
||||
feet += 1
|
||||
inches = 0
|
||||
|
||||
|
||||
if not isArea:
|
||||
add_inches = bool(inches) or not suppress_zero_inches
|
||||
|
||||
Reference in New Issue
Block a user