hack to hide some geometric oddity in pianorolls

the automation group rectangle, when set to use COORD_MAX as the rightmost x-coordinate
ends up sloping. use a very large number instead.

this ought to get fixed when it can be understood
This commit is contained in:
Paul Davis 2025-03-20 13:20:31 -06:00
parent a8914cbb61
commit 1b9a69c90f

View file

@ -145,7 +145,7 @@ PianorollMidiView::set_height (double h)
midi_context().set_size (midi_context().width(), note_area_height);
automation_group->set_position (ArdourCanvas::Duple (0., note_area_height));
automation_group->set (ArdourCanvas::Rect (0., 0., ArdourCanvas::COORD_MAX, automation_height));
automation_group->set (ArdourCanvas::Rect (0., 0., 100000000000000., automation_height));
for (auto & ads : automation_map) {
ads.second.set_height (automation_height);