Browse Source

Verify that we have a value before using it

Contributes to CURA-446
Arjen Hiemstra 9 years ago
parent
commit
dc467b50ce
1 changed files with 2 additions and 1 deletions
  1. 2 1
      cura/BuildVolume.py

+ 2 - 1
cura/BuildVolume.py

@@ -257,7 +257,8 @@ class BuildVolume(SceneNode):
         if profile.getSettingValue("draft_shield_enabled"):
             skirt_size += profile.getSettingValue("draft_shield_dist")
 
-        skirt_size += profile.getSettingValue("xy_offset")
+        if profile.getSettingValue("xy_offset"):
+            skirt_size += profile.getSettingValue("xy_offset")
 
         return skirt_size