libcanvas/CanvasJournal.py:end(): purge patchesUndo if at patchesUndoLevel > 0.

assets/text/TODO: updated.
This commit is contained in:
Lucio Andrés Illanes Albornoz 2019-09-12 16:39:17 +02:00
parent 6e05238efa
commit 31b45d1076
2 changed files with 6 additions and 4 deletions

View File

@ -13,9 +13,8 @@ High-priority list:
1) geometric primitives: arrow, circle, cloud/speech bubble, curve, heart, hexagon, line, pentagon, polygon, rhombus, triangle, square, star
2) region filters: crop, duplicate, erase, fill, invert, measure, pick, rotate, scale, select, shift, slice, tile, translate
3) text tool: a) allow navigating w/ cursor keys b) Unicode set key & GUI w/ MRU
4) fix outstanding {re,un}do bugs
5) GUI: {de,in}crease cell size
6) GUI: MRU {directories,files}
7) cleanup & refactor
4) GUI: {de,in}crease cell size
5) GUI: MRU {directories,files}
6) cleanup & refactor
vim:ff=dos tw=0

View File

@ -13,6 +13,9 @@ class CanvasJournal():
def end(self):
if self.patchesUndo[self.patchesUndoLevel] == [[], []]:
del self.patchesUndo[self.patchesUndoLevel]
else:
if self.patchesUndoLevel > 0:
del self.patchesUndo[:self.patchesUndoLevel]; self.patchesUndoLevel = 0;
# }}}
# {{{ popCursor(self)
def popCursor(self):