summaryrefslogtreecommitdiff
path: root/gtk2_ardour/automation_streamview.cc
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2014-12-07 23:16:42 -0500
committerDavid Robillard <d@drobilla.net>2014-12-07 23:16:42 -0500
commit4f8714a038b5067b9d74c36f8f00dc6eb6c68f7f (patch)
tree426f874325a3aae817f2979851beab222e193065 /gtk2_ardour/automation_streamview.cc
parent116722f1820395b545804976fe9bf3441f933f4c (diff)
Fix alignment of automation paste.
Preserve alignment between notes and control points when doing an internal copy/paste of both. Relative alignment between points on multi-paste is still not preserved. Both behaviours here are actually useful, perhaps a modifier...
Diffstat (limited to 'gtk2_ardour/automation_streamview.cc')
-rw-r--r--gtk2_ardour/automation_streamview.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk2_ardour/automation_streamview.cc b/gtk2_ardour/automation_streamview.cc
index 6c88e2169e..c4787f14ea 100644
--- a/gtk2_ardour/automation_streamview.cc
+++ b/gtk2_ardour/automation_streamview.cc
@@ -277,6 +277,9 @@ AutomationStreamView::clear ()
void
AutomationStreamView::get_selectables (framepos_t start, framepos_t end, double botfrac, double topfrac, list<Selectable*>& results)
{
+ if (!_trackview.editor().internal_editing()) {
+ return; // TODO: selection of automation regions
+ }
for (list<RegionView*>::iterator i = region_views.begin(); i != region_views.end(); ++i) {
AutomationRegionView* arv = dynamic_cast<AutomationRegionView*> (*i);
assert (arv);