prevent crash during ripple-mode dragging a region with copy enabled (weird crash but this stops it)

This commit is contained in:
Paul Davis 2023-04-17 11:51:30 -06:00
parent 4d5bce3568
commit 1a2fff932f
1 changed files with 1 additions and 1 deletions

View File

@ -1848,7 +1848,7 @@ RegionMoveDrag::finished_copy (bool const changed_position, bool const changed_t
/* Ripple marks & ranges if appropriate */
if (_editor->should_ripple_all()) {
if (_editor->should_ripple_all() && _primary->region()->playlist()) {
_editor->ripple_marks (_primary->region()->playlist(), extent_min, extent_min.distance (extent_max));
}