Another safeguard against pianoroll timer issues

This commit is contained in:
Robin Gareus 2025-08-27 15:11:18 +02:00
parent a8092c1782
commit 9ac66b3d86
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04

View file

@ -591,7 +591,8 @@ Pianoroll::maybe_update ()
_playhead_cursor->set_position (0);
}
if (_session->transport_rolling() && follow_playhead() && !_scroll_drag) {
assert (_session);
if (_session && _session->transport_rolling() && follow_playhead() && !_scroll_drag) {
reset_x_origin_to_follow_playhead ();
}
}