summaryrefslogtreecommitdiff
path: root/gtk2_ardour/midi_time_axis.cc
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2014-12-16 14:37:40 -0500
committerDavid Robillard <d@drobilla.net>2014-12-18 20:23:34 -0500
commita12a065457a10d9be2582f3ad2fcee7178405981 (patch)
treee616a88d159606ffcd7150cb7e4164022f85d3eb /gtk2_ardour/midi_time_axis.cc
parent026f7bf5b7bd4b28209a2fa9d421a5a73ec29dc4 (diff)
Fix copy paste of MIDI and track automation.
Diffstat (limited to 'gtk2_ardour/midi_time_axis.cc')
-rw-r--r--gtk2_ardour/midi_time_axis.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/gtk2_ardour/midi_time_axis.cc b/gtk2_ardour/midi_time_axis.cc
index b23d86194a..f15cf231f0 100644
--- a/gtk2_ardour/midi_time_axis.cc
+++ b/gtk2_ardour/midi_time_axis.cc
@@ -1583,3 +1583,14 @@ MidiTimeAxisView::capture_channel_mode_changed ()
break;
}
}
+
+bool
+MidiTimeAxisView::paste (framepos_t pos, const Selection& selection, PasteContext& ctx)
+{
+ if (!_editor.internal_editing()) {
+ // Non-internal paste, paste regions like any other route
+ return RouteTimeAxisView::paste(pos, selection, ctx);
+ }
+
+ return midi_view()->paste(pos, selection, ctx);
+}