From a61a317da62c014ad47259ef83fb50a3a9250735 Mon Sep 17 00:00:00 2001 From: Thxios <44109470+Thxios@users.noreply.github.com> Date: Tue, 10 Mar 2020 20:20:03 +0900 Subject: [PATCH] Canvas class integrated into CanvasSection class --- src/Brush.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Brush.py b/src/Brush.py index 9b22859..85e7fa2 100644 --- a/src/Brush.py +++ b/src/Brush.py @@ -98,7 +98,7 @@ def DrawLine(self, x0, y0, x1, y1): ab = 1 if dy > 0 else -1 error = 0 y = y0 - for x in range(x0, x1 + 1): + for x in range(x0 + 1, x1 + 1): print('x:', x) self.pencil.OnMouseDown((x, y), self._layer) print((x, y))