Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Area.py
diff options
context:
space:
mode:
Diffstat (limited to 'Area.py')
-rw-r--r--Area.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Area.py b/Area.py
index 20fab69..2ff35cc 100644
--- a/Area.py
+++ b/Area.py
@@ -891,6 +891,11 @@ class Area(Gtk.DrawingArea):
elif len(self._undo_list) == MAX_UNDO_STEPS:
# drop the oldest undo pix:
self._undo_list.pop(0)
+
+ # it could be at the middle of the list (clicked many
+ # times undo) and after that draw anything, so we should
+ # discart the next redos because they are obsolete now.
+ self._undo_list = self._undo_list[:self._undo_index]
else:
self._undo_index += 1
# Forget the redos after this one: