Fix deadlock when no region boundaries are selected in the Snap prefs.
authorBen Loftis <ben@harrisonconsoles.com>
Tue, 2 Oct 2018 14:28:05 +0000 (09:28 -0500)
committerBen Loftis <ben@harrisonconsoles.com>
Tue, 2 Oct 2018 14:28:05 +0000 (09:28 -0500)
gtk2_ardour/editor_ops.cc

index 23b3d239d78e4d7954ff8cd87395765daa893779..4362b579d1e5f1ad5fda596e3e63c91f06d4dd51 100644 (file)
@@ -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;