From 5fd20d31b180d3c6b7c7fceed84f84279c0a164b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz?= Date: Wed, 10 Jan 2018 19:20:35 +0100 Subject: [PATCH] MiRCARTToolSelectMove.py: clear source region prior to moving. --- MiRCARTToolSelectMove.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/MiRCARTToolSelectMove.py b/MiRCARTToolSelectMove.py index 520f4de..7412062 100644 --- a/MiRCARTToolSelectMove.py +++ b/MiRCARTToolSelectMove.py @@ -48,12 +48,15 @@ class MiRCARTToolSelectMove(MiRCARTToolSelect): disp = [0, 0] newToolRect = selectRect.copy() isCursor = True + for numRow in range(len(self.toolSelectMap)): + for numCol in range(len(self.toolSelectMap[numRow])): + dispatchFn(eventDc, isCursor, [[self.srcRect[0] + numCol, \ + self.srcRect[1] + numRow], [1, 1], 0, " "]) for numRow in range(len(self.toolSelectMap)): for numCol in range(len(self.toolSelectMap[numRow])): cellOld = self.toolSelectMap[numRow][numCol] rectY = selectRect[0][1] + numRow rectX = selectRect[0][0] + numCol - dispatchFn(eventDc, isCursor, [[self.srcRect[0] + numCol, self.srcRect[1] + numRow], [1, 1], 0, " "]) dispatchFn(eventDc, isCursor, [[rectX+disp[0], rectY+disp[1]], *cellOld]) self._drawSelectRect(newToolRect, dispatchFn, eventDc) self.toolRect = newToolRect