From 41eeeede6b25fd69852bfb74f71e63c437ba40db Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Thu, 20 Dec 2018 13:21:48 -0200 Subject: [PATCH] Arch: Fixed crash on creating new BuildingParts --- src/Mod/Arch/ArchBuildingPart.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Mod/Arch/ArchBuildingPart.py b/src/Mod/Arch/ArchBuildingPart.py index 2d2ea58f77..b766ffc3ec 100644 --- a/src/Mod/Arch/ArchBuildingPart.py +++ b/src/Mod/Arch/ArchBuildingPart.py @@ -637,6 +637,8 @@ class ViewProviderBuildingPart: if not vobj.ShowUnit: u = "" txt += fmt.format(float(q)) + str(u) + if not txt: + txt = " " # empty texts make coin crash... if isinstance(txt,unicode): txt = txt.encode("utf8") self.txt.string.setValue(txt)