From 7afc45ac5ce8d9c42d2434b34e1f55350936755c Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 21 Jun 2021 09:30:53 -0600 Subject: [PATCH] helpful comment --- gtk2_ardour/editor_drag.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gtk2_ardour/editor_drag.cc b/gtk2_ardour/editor_drag.cc index 4d18315ecb..b60d53f3c4 100644 --- a/gtk2_ardour/editor_drag.cc +++ b/gtk2_ardour/editor_drag.cc @@ -825,7 +825,11 @@ RegionMotionDrag::start_grab (GdkEvent* event, Gdk::Cursor* cursor) show_verbose_cursor_time (_last_position.sample); show_view_preview (_last_position.sample + _video_sample_offset); - if (_editor->should_ripple()) { + /* this conditional is required because drag-n-drop'ed regions end up + * here, and at this point they are not attached to a playlist. + */ + + if (_editor->should_ripple() && _primary && _primary->region() && _primary->region()->playlist()) { _earliest_time_limit = _primary->region()->playlist()->find_prev_region_start (_primary->region()->position()); }