From 42cf4f8ce310d2e7c7e349d8b48b6279d767478e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 18 Sep 2016 12:21:44 -0400 Subject: Fix undo of deletions with both blocks and arcs Also probably other cases of dependent events that must be executed in the correct order for undo to make sense. --- src/server/UndoStack.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/server/UndoStack.hpp b/src/server/UndoStack.hpp index aeb18529..4511d70d 100644 --- a/src/server/UndoStack.hpp +++ b/src/server/UndoStack.hpp @@ -68,11 +68,11 @@ public: const uint32_t size = lv2_atom_total_size(ev); LV2_Atom* copy = (LV2_Atom*)malloc(size); memcpy(copy, ev, size); - events.push_back(copy); + events.push_front(copy); } - time_t time; - std::vector events; + time_t time; + std::deque events; }; UndoStack(URIs& uris, URIMap& map) : _uris(uris), _map(map), _depth(0) {} -- cgit v1.2.1