From 19630c545fe8538cbfe8008c84e8338f6f2ce60e Mon Sep 17 00:00:00 2001 From: daid Date: Fri, 26 Jul 2013 09:20:52 +0200 Subject: [PATCH] Fixed #513 --- Cura/util/profile.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Cura/util/profile.py b/Cura/util/profile.py index 4e2c3239..15416855 100644 --- a/Cura/util/profile.py +++ b/Cura/util/profile.py @@ -620,7 +620,7 @@ def calculateEdgeWidth(): if wallThickness < nozzleSize: return wallThickness - lineCount = int(wallThickness / nozzleSize + 0.0001) + lineCount = int(wallThickness / (nozzleSize + 0.0001)) lineWidth = wallThickness / lineCount lineWidthAlt = wallThickness / (lineCount + 1) if lineWidth > nozzleSize * 1.5: @@ -636,7 +636,7 @@ def calculateLineCount(): if wallThickness < nozzleSize: return 1 - lineCount = int(wallThickness / nozzleSize + 0.0001) + lineCount = int(wallThickness / (nozzleSize + 0.0001)) lineWidth = wallThickness / lineCount lineWidthAlt = wallThickness / (lineCount + 1) if lineWidth > nozzleSize * 1.5: @@ -648,7 +648,7 @@ def calculateSolidLayerCount(): solidThickness = getProfileSettingFloat('solid_layer_thickness') if layerHeight == 0.0: return 1 - return int(math.ceil(solidThickness / layerHeight - 0.0001)) + return int(math.ceil(solidThickness / (layerHeight - 0.0001))) def calculateObjectSizeOffsets(): size = 0.0 -- 2.30.2