From 3ceeaa739fb20125b7195dbd69e5e8606a3d5ed8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Perdig=C3=A3o?= Date: Fri, 23 Aug 2024 23:08:22 -0300 Subject: [PATCH] Small fix on `format_distance` to show zero like `0'`. --- src/bonsai/bonsai/bim/module/drawing/helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bonsai/bonsai/bim/module/drawing/helper.py b/src/bonsai/bonsai/bim/module/drawing/helper.py index ee9585c98f..05cf85b8a5 100644 --- a/src/bonsai/bonsai/bim/module/drawing/helper.py +++ b/src/bonsai/bonsai/bim/module/drawing/helper.py @@ -202,7 +202,7 @@ def format_distance( if not isArea: add_inches = bool(inches) or not suppress_zero_inches tx_dist = "" - if feet: + if feet is not None: tx_dist += str(feet) + "'" if feet and add_inches: tx_dist += " - "