From cad73fd135594a7596e7bdc6dd24fde73117383a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz?= Date: Sun, 15 Sep 2019 19:37:10 +0200 Subject: [PATCH] libtools/ToolObject.py:_mouseEventTsSelect(): reset object{Map,Size} when resetting to TS_NONE. --- libtools/ToolObject.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtools/ToolObject.py b/libtools/ToolObject.py index aa5c783..3c9330f 100644 --- a/libtools/ToolObject.py +++ b/libtools/ToolObject.py @@ -87,7 +87,7 @@ class ToolObject(Tool): else: dirty = self.onSelectEvent(canvas, (0, 0), dispatchFn, eventDc, False, keyModifiers, self.targetRect.copy(), self.targetRect, viewRect) self._drawSelectRect(self.targetRect, dispatchFn, eventDc, viewRect) - self.targetRect, self.toolState = None, self.TS_NONE + self.objectMap, self.objectSize, self.targetRect, self.toolState = None, None, None, self.TS_NONE else: dirty = self._dispatchSelectEvent(canvas, dispatchFn, eventDc, keyModifiers, mapPoint, mouseLeftDown, self.targetRect, viewRect) return dirty