From b58e005b20fd754bab771dbdefc93310121d7abd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz?= Date: Sun, 8 Sep 2019 19:24:55 +0200 Subject: [PATCH] libgui/GuiCanvasInterface.py:canvas{Brush,Canvas}Size(): correctly {de,in}crement {brush,canvas} height & width. --- libgui/GuiCanvasInterface.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libgui/GuiCanvasInterface.py b/libgui/GuiCanvasInterface.py index 23a6c13..42a035d 100644 --- a/libgui/GuiCanvasInterface.py +++ b/libgui/GuiCanvasInterface.py @@ -281,7 +281,7 @@ class GuiCanvasInterface(): self.parentCanvas.brushSize[dimension] += 1 self.update(brushSize=self.parentCanvas.brushSize) elif dimension == 2: - [self.canvasBrushSize(f, dimension_, incrFlag) for dimension_ in [0, 1]] + [self.canvasBrushSize(f, dimension_, incrFlag)(self, None) for dimension_ in [0, 1]] setattr(canvasBrushSize_, "attrDict", f.attrList[dimension + (0 if not incrFlag else 3)]) return canvasBrushSize_ # }}} @@ -307,7 +307,7 @@ class GuiCanvasInterface(): elif dimension == 1: self.parentCanvas.resize([self.parentCanvas.canvas.size[0] + 1, self.parentCanvas.canvas.size[1]]) elif dimension == 2: - [self.canvasCanvasSize(f, dimension_, incrFlag) for dimension_ in [0, 1]] + [self.canvasCanvasSize(f, dimension_, incrFlag)(self, None) for dimension_ in [0, 1]] setattr(canvasCanvasSize_, "attrDict", f.attrList[dimension + (0 if not incrFlag else 3)]) return canvasCanvasSize_ # }}}