From 1876f366118554de419ebbae8a5e80def81933f8 Mon Sep 17 00:00:00 2001 From: wood galaxy Date: Mon, 1 Dec 2014 15:42:23 +0100 Subject: [PATCH] Fix bug if user enter thickness = 0 --- src/Mod/Arch/ArchRoof.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Mod/Arch/ArchRoof.py b/src/Mod/Arch/ArchRoof.py index f4ff0ea2b..ba316eb7a 100644 --- a/src/Mod/Arch/ArchRoof.py +++ b/src/Mod/Arch/ArchRoof.py @@ -504,7 +504,10 @@ class _RoofTaskPanel: a.append(float(it.text(1))) run.append(float(it.text(2))) rel.append(int(it.text(3))) - thick.append(float(it.text(4))) + if float(it.text(4)) == 0.: + thick.append(1.) + else: + thick.append(float(it.text(4))) over.append(float(it.text(5))) self.obj.Runs = run self.obj.Angles = a