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...
This commit is contained in:
David Robillard 2014-12-07 23:16:42 -05:00
parent 116722f182
commit 4f8714a038
3 changed files with 35 additions and 13 deletions

View file

@ -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);