diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-09-22 16:27:01 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-09-27 14:59:31 -0500 |
commit | 67540ad0f53b11eff6d8e11cc0863c765aa9af37 (patch) | |
tree | 9688a374ae27ba279681d8f8e881978cb8e43e1b /gtk2_ardour/editor_ops.cc | |
parent | 7f31a40932a6d36772dfece943c252081ef1882f (diff) |
add explicit "duplicate-regions" action
Diffstat (limited to 'gtk2_ardour/editor_ops.cc')
-rw-r--r-- | gtk2_ardour/editor_ops.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc index 004aff4f08..88a784b0b6 100644 --- a/gtk2_ardour/editor_ops.cc +++ b/gtk2_ardour/editor_ops.cc @@ -4823,6 +4823,13 @@ Editor::paste_internal (framepos_t position, float times, const int32_t sub_num) } void +Editor::duplicate_regions (float times) +{ + RegionSelection rs (get_regions_from_selection_and_entered()); + duplicate_some_regions (rs, times); +} + +void Editor::duplicate_some_regions (RegionSelection& regions, float times) { if (regions.empty ()) { |