From 1b9a69c90f7189f5bb92f7c035d34635febf33eb Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 20 Mar 2025 13:20:31 -0600 Subject: [PATCH] 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 --- gtk2_ardour/pianoroll_midi_view.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk2_ardour/pianoroll_midi_view.cc b/gtk2_ardour/pianoroll_midi_view.cc index e6ffb90ad1..d4a7cd9aa8 100644 --- a/gtk2_ardour/pianoroll_midi_view.cc +++ b/gtk2_ardour/pianoroll_midi_view.cc @@ -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);