From 52672796c6ff30dab91b01a05b47e87b8cc2b02a 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 a8fc3ee..20e98c5 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_ # }}}