13
0

cue automation lines: take height into consideration

This commit is contained in:
Paul Davis 2024-09-18 22:20:32 -06:00
parent a9205ffd55
commit 4169f11ddd
2 changed files with 5 additions and 4 deletions

View File

@ -1036,8 +1036,6 @@ AutomationLineBase::reset_callback (const Evoral::ControlList& events)
uint32_t pi = 0; uint32_t pi = 0;
uint32_t np; uint32_t np;
std::cerr << _name << ": ALB::reset callback with " << events.size() << std::endl;
if (events.empty()) { if (events.empty()) {
for (vector<ControlPoint*>::iterator i = control_points.begin(); i != control_points.end(); ++i) { for (vector<ControlPoint*>::iterator i = control_points.begin(); i != control_points.end(); ++i) {
delete *i; delete *i;

View File

@ -102,6 +102,10 @@ MidiCueView::set_height (double h)
automation_group->set_position (ArdourCanvas::Duple (0., note_area_height + velocity_height)); automation_group->set_position (ArdourCanvas::Duple (0., note_area_height + velocity_height));
automation_group->set (ArdourCanvas::Rect (0., 0., ArdourCanvas::COORD_MAX, automation_height)); automation_group->set (ArdourCanvas::Rect (0., 0., ArdourCanvas::COORD_MAX, automation_height));
if (automation_line) {
automation_line->set_height (automation_height);
}
view_changed (); view_changed ();
} }
@ -278,8 +282,7 @@ MidiCueView::show_automation (Evoral::Parameter const & param)
automation_group, automation_group,
ac->alist(), ac->alist(),
ac->desc()); ac->desc());
automation_line->reset (); automation_line->set_height (automation_group->get().height());
} }
break; break;