From ece153823901baa377cd108d198676f30fbf8318 Mon Sep 17 00:00:00 2001 From: Victor Benso Date: Wed, 3 Apr 2019 12:28:20 -0400 Subject: [PATCH] Issue #284 - Sanitize the entered Overlap value --- flatcamTools/ToolPaint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flatcamTools/ToolPaint.py b/flatcamTools/ToolPaint.py index 355512ce..c6aff23c 100644 --- a/flatcamTools/ToolPaint.py +++ b/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