chiark / gitweb /
.
authorDaid <daid303@gmail.com>
Fri, 24 Feb 2012 21:44:18 +0000 (22:44 +0100)
committerDaid <daid303@gmail.com>
Fri, 24 Feb 2012 21:44:18 +0000 (22:44 +0100)
SkeinPyPy_NewUI/newui/validators.py

index 5d2a04b3646bbfc6bb21bd30c0163180a520cb0c..988609438ef62f5eeeb7d3066b06f90faf83a05e 100644 (file)
@@ -79,7 +79,7 @@ class wallThicknessValidator():
                        lineCount = int(wallThickness / nozzleSize)
                        lineWidth = wallThickness / lineCount
                        lineWidthAlt = wallThickness / (lineCount + 1)
-                       if lineWidth > nozzleSize * 1.5 and lineWidthAlt < nozzleSize * 0.85:
+                       if lineWidth >= nozzleSize * 1.5 and lineWidthAlt <= nozzleSize * 0.85:
                                return WARNING, 'Current selected wall thickness results in a line thickness of ' + str(lineWidthAlt) + 'mm which is not recommended with your nozzle of ' + str(nozzleSize) + 'mm'
                        return SUCCESS, ''
                except ValueError: