chiark / gitweb /
Fix the rounding bug when using 1.2mm wall thickness.
authordaid303 <daid303@gmail.com>
Mon, 24 Dec 2012 10:23:47 +0000 (11:23 +0100)
committerdaid303 <daid303@gmail.com>
Mon, 24 Dec 2012 10:23:47 +0000 (11:23 +0100)
Cura/util/profile.py

index 869dd4ebc4df41aa225f8fa355f4496bf3810854..c15de19a3261833e6457a4b6913ed0c2e538915c 100644 (file)
@@ -397,7 +397,7 @@ def calculateEdgeWidth():
        if wallThickness < nozzleSize:
                return wallThickness
 
-       lineCount = int(wallThickness / nozzleSize)
+       lineCount = int(wallThickness / nozzleSize + 0.0001)
        lineWidth = wallThickness / lineCount
        lineWidthAlt = wallThickness / (lineCount + 1)
        if lineWidth > nozzleSize * 1.5: