} else {
boost::shared_ptr<AutomationLine> line(new AutomationLine (
- _control->parameter().symbol(),
+ ARDOUR::EventTypeMap::instance().to_symbol(_control->parameter()),
*this,
*canvas_display,
_control->alist()));
if (_control->list())
_control->alist()->set_automation_state(state);
}
- _view->set_automation_state (state);
+ if (_view)
+ _view->set_automation_state (state);
}
void
AutomationTimeAxisView::set_interpolation (AutomationList::InterpolationStyle style)
{
_control->list()->set_interpolation(style);
- if (_line)
- _line->set_interpolation(style);
+ if (_line)
+ _line->set_interpolation(style);
}
void
if ((*iter)->name() == state_node_name) {
XMLProperty* type = (*iter)->property("automation-id");
- if (type && type->value() == _control->parameter().symbol()) {
- XMLProperty *shown = (*iter)->property("shown_editor");
+ if (type && type->value() == ARDOUR::EventTypeMap::instance().to_symbol(_control->parameter())) {
+ XMLProperty *shown = (*iter)->property("shown-editor");
if (shown && shown->value() == "yes") {
set_marked_for_display(true);