From 8bfbef488874fa19a2a4b60acd8bcea89e629a62 Mon Sep 17 00:00:00 2001 From: Ben Loftis Date: Tue, 2 Oct 2018 09:28:05 -0500 Subject: Fix deadlock when no region boundaries are selected in the Snap prefs. --- gtk2_ardour/editor_ops.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc index 23b3d239d7..4362b579d1 100644 --- a/gtk2_ardour/editor_ops.cc +++ b/gtk2_ardour/editor_ops.cc @@ -734,6 +734,12 @@ Editor::build_region_boundary_cache () return; } + /* if no snap boundaries were set, just bail out here with an empty region cache */ + if ( interesting_points.empty() ) { + _region_boundary_cache_dirty = false; + return; + }; + TimeAxisView *ontrack = 0; TrackViewList tlist; -- cgit v1.2.3