diff --git a/gtk2_ardour/automation_line_base.cc b/gtk2_ardour/automation_line_base.cc index 6d90744dab..4e4edb26c1 100644 --- a/gtk2_ardour/automation_line_base.cc +++ b/gtk2_ardour/automation_line_base.cc @@ -1036,8 +1036,6 @@ AutomationLineBase::reset_callback (const Evoral::ControlList& events) uint32_t pi = 0; uint32_t np; - std::cerr << _name << ": ALB::reset callback with " << events.size() << std::endl; - if (events.empty()) { for (vector::iterator i = control_points.begin(); i != control_points.end(); ++i) { delete *i; diff --git a/gtk2_ardour/midi_cue_view.cc b/gtk2_ardour/midi_cue_view.cc index c634cd6fd3..d4a037aff0 100644 --- a/gtk2_ardour/midi_cue_view.cc +++ b/gtk2_ardour/midi_cue_view.cc @@ -102,6 +102,10 @@ MidiCueView::set_height (double h) automation_group->set_position (ArdourCanvas::Duple (0., note_area_height + velocity_height)); automation_group->set (ArdourCanvas::Rect (0., 0., ArdourCanvas::COORD_MAX, automation_height)); + if (automation_line) { + automation_line->set_height (automation_height); + } + view_changed (); } @@ -278,8 +282,7 @@ MidiCueView::show_automation (Evoral::Parameter const & param) automation_group, ac->alist(), ac->desc()); - automation_line->reset (); - + automation_line->set_height (automation_group->get().height()); } break;