ensure zoom of an empty pianoroll matches that when an empty slot is shown

This commit is contained in:
Paul Davis 2025-04-24 12:01:38 -06:00
parent 5526880ac8
commit c45103c1d7

View file

@ -2964,6 +2964,8 @@ Pianoroll::set_session (ARDOUR::Session* s)
if (!_session) { if (!_session) {
_update_connection.disconnect (); _update_connection.disconnect ();
} else {
zoom_to_show (timecnt_t (timepos_t (max_extents_scale() * max_zoom_extent ().second.samples())));
} }
} }