Fix bug if user enter thickness = 0

This commit is contained in:
wood galaxy 2014-12-01 15:42:23 +01:00 committed by Yorik van Havre
parent 715b5d7fe9
commit 1876f36611

View File

@ -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