break live-loop if there's no next region - fixes #6848
authorRobin Gareus <robin@gareus.org>
Tue, 17 May 2016 00:55:19 +0000 (02:55 +0200)
committerRobin Gareus <robin@gareus.org>
Tue, 17 May 2016 00:55:19 +0000 (02:55 +0200)
gtk2_ardour/region_view.cc

index 3312fc392950c7244d6d728541921ce772eba3c0..a01ec941be9a7bd5297a28839427498bd422c3d4 100644 (file)
@@ -808,6 +808,9 @@ RegionView::update_coverage_frames (LayerDisplay d)
                }
 
                t = pl->find_next_region_boundary (t, 1);
+               if (t < 0) {
+                       break;
+               }
                me = new_me;
        }