summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_ops.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gtk2_ardour/editor_ops.cc')
-rw-r--r--gtk2_ardour/editor_ops.cc6
1 files changed, 6 insertions, 0 deletions
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;