Fix region paste (ctrl+v) undo.
authorRobin Gareus <robin@gareus.org>
Thu, 28 May 2015 11:18:59 +0000 (13:18 +0200)
committerRobin Gareus <robin@gareus.org>
Thu, 28 May 2015 11:19:50 +0000 (13:19 +0200)
gtk2_ardour/route_time_axis.cc

index ebbaf8833840fae01a478c2da5e567d06f91b044..ad3e858154a5ff76c04b996725e84388a3ecb905 100644 (file)
@@ -1613,7 +1613,7 @@ RouteTimeAxisView::paste (framepos_t pos, const Selection& selection, PasteConte
        const framecnt_t                  duration = extent.second - extent.first;
        pos += _editor.get_paste_offset(pos, ctx.count, duration);
 
-       pl->clear_changes ();
+       pl->clear_owned_changes ();
        if (Config->get_edit_mode() == Ripple) {
                std::pair<framepos_t, framepos_t> extent = (*p)->get_extent_with_endspace();
                framecnt_t amount = extent.second - extent.first;