mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 22:50:21 +00:00
fix #3792
This commit is contained in:
@@ -180,6 +180,14 @@ def format_distance(
|
|||||||
frac = 0
|
frac = 0
|
||||||
inches += 1
|
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:
|
if not isArea:
|
||||||
add_inches = bool(inches) or not suppress_zero_inches
|
add_inches = bool(inches) or not suppress_zero_inches
|
||||||
|
|||||||
Reference in New Issue
Block a user