From 42e6353338151ae9104b6d347b657a9438ccffe3 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 14 Mar 2014 13:43:51 -0400 Subject: [PATCH] fix thinko when relabelling markers --- gtk2_ardour/editor_markers.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gtk2_ardour/editor_markers.cc b/gtk2_ardour/editor_markers.cc index 1302804cec..3fefa6af9a 100644 --- a/gtk2_ardour/editor_markers.cc +++ b/gtk2_ardour/editor_markers.cc @@ -334,7 +334,10 @@ Editor::update_marker_labels (ArdourCanvas::Group* group) list::iterator prev = sorted.end (); list::iterator next = i; - ++next; + + if (next != sorted.end()) { + ++next; + } while (i != sorted.end()) {