From 989f934c3825fb600decc467770fea6f802a60b1 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 13 Dec 2016 02:33:07 +0100 Subject: Fix layered-record undo, include changes to existing region(s) --- libs/ardour/playlist.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libs/ardour/playlist.cc') diff --git a/libs/ardour/playlist.cc b/libs/ardour/playlist.cc index 7b0f69e2ab..cc6c0d3f40 100644 --- a/libs/ardour/playlist.cc +++ b/libs/ardour/playlist.cc @@ -680,6 +680,7 @@ Playlist::flush_notifications (bool from_undo) partition_internal (pos - 1, (pos + region->length()), true, thawlist); for (RegionList::iterator i = thawlist.begin(); i != thawlist.end(); ++i) { (*i)->resume_property_changes (); + _session.add_command (new StatefulDiffCommand (*i)); } } @@ -1006,6 +1007,7 @@ Playlist::flush_notifications (bool from_undo) /* "front" ***** */ + current->clear_changes (); current->suspend_property_changes (); thawlist.push_back (current); current->cut_end (pos2 - 1); @@ -1046,6 +1048,7 @@ Playlist::flush_notifications (bool from_undo) /* front ****** */ + current->clear_changes (); current->suspend_property_changes (); thawlist.push_back (current); current->cut_end (pos2 - 1); @@ -1090,6 +1093,7 @@ Playlist::flush_notifications (bool from_undo) /* end */ + current->clear_changes (); current->suspend_property_changes (); thawlist.push_back (current); current->trim_front (pos3); -- cgit v1.2.3