Commit 85bc52dd authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Fix scene undo stack also for the block scene

parent e866c277
......@@ -1715,7 +1715,7 @@ class SDL_View(QtGui.QGraphicsView, object):
# Translate all scenes to avoid negative coordinates
delta_x, delta_y = scene.translate_to_origin()
for each in scene.all_nested_scenes:
for each in chain([scene], scene.all_nested_scenes):
dx, dy = each.translate_to_origin()
if each == self.scene():
delta_x, delta_y = dx, dy
......@@ -1734,7 +1734,7 @@ class SDL_View(QtGui.QGraphicsView, object):
pr_file.close()
if not autosave:
self.scene().clear_focus()
for each in scene.all_nested_scenes:
for each in chain([scene], scene.all_nested_scenes):
each.undo_stack.setClean()
else:
LOG.debug('Auto-saving backup file completed:' + filename)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment