From: daid Date: Fri, 26 Jul 2013 07:20:52 +0000 (+0200) Subject: Fixed #513 X-Git-Tag: 13.10~118 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=19630c545fe8538cbfe8008c84e8338f6f2ce60e;p=cura.git Fixed #513 --- 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