From c45103c1d70da6472e3ef9fb6f5eff785b3ad52f Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 24 Apr 2025 12:01:38 -0600 Subject: [PATCH] ensure zoom of an empty pianoroll matches that when an empty slot is shown --- gtk2_ardour/pianoroll.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gtk2_ardour/pianoroll.cc b/gtk2_ardour/pianoroll.cc index fcae8e834f..8586f3f50b 100644 --- a/gtk2_ardour/pianoroll.cc +++ b/gtk2_ardour/pianoroll.cc @@ -2964,6 +2964,8 @@ Pianoroll::set_session (ARDOUR::Session* s) if (!_session) { _update_connection.disconnect (); + } else { + zoom_to_show (timecnt_t (timepos_t (max_extents_scale() * max_zoom_extent ().second.samples()))); } }