소스 검색

Issue #284 - Sanitize the entered Overlap value

Victor Benso 6 년 전
부모
커밋
ece1538239
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      flatcamTools/ToolPaint.py

+ 1 - 1
flatcamTools/ToolPaint.py

@@ -743,7 +743,7 @@ class ToolPaint(FlatCAMTool, Gerber):
                                      "use a number."))
                 return
 
-        if not overlap < 1 and overlap >= 0:
+        if overlap >= 1 or overlap < 0:
             self.app.inform.emit(_("[ERROR_NOTCL] Overlap value must be between "
                                   "0 (inclusive) and 1 (exclusive), "))
             return