mirror of
https://github.com/lalbornoz/roar.git
synced 2024-12-23 04:46:37 +00:00
MiRCARTToolSelectMove.py: clear source region prior to moving.
This commit is contained in:
parent
ad761d658e
commit
8c0de9fbd3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user