From 447d068c8bbb4289111a2e1bd9159f0cf507bee9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz?= Date: Mon, 16 Sep 2019 11:38:14 +0200 Subject: [PATCH] libroar/RoarCanvasCommandsOperators.py:canvasOperator(): correctly {pass,set} parentCanvas.dirty. assets/text/TODO: updated. --- assets/text/TODO | 5 +++-- libroar/RoarCanvasCommandsOperators.py | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/assets/text/TODO b/assets/text/TODO index c27f1ff..93fbb93 100644 --- a/assets/text/TODO +++ b/assets/text/TODO @@ -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 diff --git a/libroar/RoarCanvasCommandsOperators.py b/libroar/RoarCanvasCommandsOperators.py index 55124a7..0107cea 100644 --- a/libroar/RoarCanvasCommandsOperators.py +++ b/libroar/RoarCanvasCommandsOperators.py @@ -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_ # }}}