cue automation lines: take height into consideration
This commit is contained in:
parent
a9205ffd55
commit
4169f11ddd
@ -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<ControlPoint*>::iterator i = control_points.begin(); i != control_points.end(); ++i) {
|
||||
delete *i;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user