diff options
author | David Robillard <d@drobilla.net> | 2008-09-19 06:30:49 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-09-19 06:30:49 +0000 |
commit | 60f588f21d6ad62335d72e8dc682abf8859107ea (patch) | |
tree | b096b25cd757f6086c90f35b4358080747dc0c0a /gtk2_ardour/automation_streamview.cc | |
parent | 2539b8fc184380957ba0effa1db947ced748ab31 (diff) |
Fix parameter range stuff and automation time axis height (somewhat...).
Create a new AutomationLine when an AutomationRegionView without a line is clicked.
git-svn-id: svn://localhost/ardour2/branches/3.0@3757 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/automation_streamview.cc')
-rw-r--r-- | gtk2_ardour/automation_streamview.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gtk2_ardour/automation_streamview.cc b/gtk2_ardour/automation_streamview.cc index 68da972ba0..206dc3753b 100644 --- a/gtk2_ardour/automation_streamview.cc +++ b/gtk2_ardour/automation_streamview.cc @@ -88,8 +88,10 @@ AutomationStreamView::add_region_view_internal (boost::shared_ptr<Region> region region->control(_controller->controllable()->parameter())); boost::shared_ptr<AutomationList> list; - if (control) + if (control) { list = boost::dynamic_pointer_cast<AutomationList>(control->list()); + assert(!control->list() || list); + } AutomationRegionView *region_view; std::list<RegionView *>::iterator i; @@ -107,7 +109,8 @@ AutomationStreamView::add_region_view_internal (boost::shared_ptr<Region> region } } - region_view = new AutomationRegionView (canvas_group, _automation_view, region, list, + region_view = new AutomationRegionView (canvas_group, _automation_view, region, + _controller->controllable()->parameter(), list, _samples_per_unit, region_color); region_view->init (region_color, false); |