chiark / gitweb /
Fixed #513
authordaid <daid303@gmail.com>
Fri, 26 Jul 2013 07:20:52 +0000 (09:20 +0200)
committerdaid <daid303@gmail.com>
Fri, 26 Jul 2013 07:20:52 +0000 (09:20 +0200)
Cura/util/profile.py

index 4e2c32392398b554e0a7aa5e8b421aacad2acd21..15416855f1280d47acb45368e3a20c3706f01092 100644 (file)
@@ -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