libroar/RoarCanvasCommandsOperators.py:canvasOperator(): correctly {pass,set} parentCanvas.dirty.

assets/text/TODO: updated.
This commit is contained in:
Lucio Andrés Illanes Albornoz 2019-09-16 11:38:14 +02:00
parent c93c8dd8b0
commit 632e3a8ac1
2 changed files with 5 additions and 4 deletions

View File

@ -23,7 +23,8 @@ High-priority list:
Queue:
1) scrolling bug: start @ top, down key til cursor below visible canvas, scroll down, cursor gone GRRRR
2) scrolling bug: scroll down, apply operator to entire canvas, scroll up
3) select-related {re,un}do bugs
4) clone selection lag
3) object tool: object size wrong occasionally w/ external objects
4) scrolling bug: scroll down, un/redo, scroll up
5) clone selection lag
vim:ff=dos tw=0

View File

@ -45,10 +45,10 @@ class RoarCanvasCommandsOperators():
for numRow in range(len(region)):
for numCol in range(len(region[numRow])):
if not dirty:
dirty = True
self.parentCanvas.dirty = True
self.parentCanvas.dispatchPatchSingle(eventDc, False, [numCol, numRow, *region[numRow][numCol]], viewRect)
self.parentCanvas.canvas.journal.end()
self.parentCanvas.commands.update(dirty=dirty, undoLevel=self.parentCanvas.canvas.journal.patchesUndoLevel)
self.parentCanvas.commands.update(dirty=self.parentCanvas.dirty, undoLevel=self.parentCanvas.canvas.journal.patchesUndoLevel)
setattr(canvasOperator_, "attrDict", f.attrList[idx])
return canvasOperator_
# }}}