mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 08:36:32 +01:00
ensure zoom of an empty pianoroll matches that when an empty slot is shown
This commit is contained in:
parent
5526880ac8
commit
c45103c1d7
1 changed files with 2 additions and 0 deletions
|
|
@ -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())));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue