From b3cb24f76a84db54291c9037e09d13cfaf5de767 Mon Sep 17 00:00:00 2001 From: fieldOfView Date: Tue, 1 Sep 2015 15:03:22 +0200 Subject: [PATCH] Fix crash when a profile cannot be loaded, which caused the width & height of the buildvolume to be set to None --- cura/BuildVolume.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cura/BuildVolume.py b/cura/BuildVolume.py index 1556ee8d22..76431f6fb0 100644 --- a/cura/BuildVolume.py +++ b/cura/BuildVolume.py @@ -35,13 +35,13 @@ class BuildVolume(SceneNode): def setWidth(self, width): - self._width = width + if width: self._width = width def setHeight(self, height): - self._height = height + if height: self._height = height def setDepth(self, depth): - self._depth = depth + if depth: self._depth = depth def getDisallowedAreas(self): return self._disallowed_areas