Commit e1a2a45b authored by Maxime Perrotin's avatar Maxime Perrotin

Adapt the redo function (for opengeode simulations)

the new items are added to the list of items at creation time (needed
for the streaming scene). for the Redo, check that the last item is
there and if not, put it back
parent 60034039
......@@ -106,7 +106,8 @@ class AddToMsc(QUndoCommand):
self.handler.cnt_id += 1
self.handler.msg.append(self.txt)
self.handler.next_y += self.increase_factor
self.handler.msc_scene.visible_items.append(self.item)
if self.handler.msc_scene.visible_items[-1] != self.item:
self.handler.msc_scene.visible_items.append(self.item)
self.item.show()
......
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