13
0

helpful comment

This commit is contained in:
Paul Davis 2021-06-21 09:30:53 -06:00
parent 12b536d8f2
commit 7afc45ac5c

View File

@ -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());
}