mirror of
https://github.com/lalbornoz/roar.git
synced 2024-11-22 23:36:36 +00:00
MiRCARTToolSelectMove.py: clear source region prior to moving.
This commit is contained in:
parent
7e7df8a31c
commit
5fd20d31b1
@ -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