diff options
author | David Robillard <d@drobilla.net> | 2008-09-29 22:47:40 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-09-29 22:47:40 +0000 |
commit | b5ec66ae6cb60fa43c343d3d29340b2370d0b9d1 (patch) | |
tree | 217722d96b61288f44477c69ac3bbe5d2e7d43f1 /gtk2_ardour/automation_region_view.cc | |
parent | 03f188cc8b17edc7c727f62b22b4577a2fdbfbe8 (diff) |
Can't call the wrong function when there's only one of them: remove ARDOUR::Parameter and just use Evoral::Parameter (move Ardour specific functionality to EventTypeMap where it belongs).
Less than pretty in places but easily seddable just in case...
git-svn-id: svn://localhost/ardour2/branches/3.0@3838 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/automation_region_view.cc')
-rw-r--r-- | gtk2_ardour/automation_region_view.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk2_ardour/automation_region_view.cc b/gtk2_ardour/automation_region_view.cc index c213b3feeb..d8b90e6458 100644 --- a/gtk2_ardour/automation_region_view.cc +++ b/gtk2_ardour/automation_region_view.cc @@ -26,7 +26,7 @@ AutomationRegionView::AutomationRegionView(ArdourCanvas::Group* parent, AutomationTimeAxisView& time_axis, boost::shared_ptr<ARDOUR::Region> region, - const ARDOUR::Parameter& param, + const Evoral::Parameter& param, boost::shared_ptr<ARDOUR::AutomationList> list, double spu, Gdk::Color& basic_color) @@ -65,7 +65,8 @@ void AutomationRegionView::create_line (boost::shared_ptr<ARDOUR::AutomationList> list) { _line = boost::shared_ptr<AutomationLine>(new AutomationLine( - list->parameter().symbol(), trackview, *get_canvas_group(), list)); + ARDOUR::EventTypeMap::instance().to_symbol(list->parameter()), + trackview, *get_canvas_group(), list)); _line->set_colors(); _line->show(); _line->show_all_control_points(); |