diff options
author | David Robillard <d@drobilla.net> | 2014-12-16 14:37:40 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2014-12-18 20:23:34 -0500 |
commit | a12a065457a10d9be2582f3ad2fcee7178405981 (patch) | |
tree | e616a88d159606ffcd7150cb7e4164022f85d3eb /gtk2_ardour/automation_streamview.cc | |
parent | 026f7bf5b7bd4b28209a2fa9d421a5a73ec29dc4 (diff) |
Fix copy paste of MIDI and track automation.
Diffstat (limited to 'gtk2_ardour/automation_streamview.cc')
-rw-r--r-- | gtk2_ardour/automation_streamview.cc | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/gtk2_ardour/automation_streamview.cc b/gtk2_ardour/automation_streamview.cc index 16dab909c7..9b68c55d23 100644 --- a/gtk2_ardour/automation_streamview.cc +++ b/gtk2_ardour/automation_streamview.cc @@ -319,13 +319,6 @@ AutomationStreamView::get_lines () const return lines; } -struct RegionPositionSorter { - bool operator() (RegionView* a, RegionView* b) { - return a->region()->position() < b->region()->position(); - } -}; - - bool AutomationStreamView::paste (framepos_t pos, unsigned paste_count, @@ -338,7 +331,7 @@ AutomationStreamView::paste (framepos_t pos, return false; } - region_views.sort (RegionPositionSorter ()); + region_views.sort (RegionView::PositionOrder()); list<RegionView*>::const_iterator prev = region_views.begin (); |