summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_markers.cc
diff options
context:
space:
mode:
authorJohn Emmas <johne53@tiscali.co.uk>2014-03-15 14:40:36 +0000
committerJohn Emmas <johne53@tiscali.co.uk>2014-03-15 14:40:36 +0000
commit21c32d68ef1ffa1a97bcac8313ccebe2f7016e08 (patch)
treef2b898f827a826d14fa4b3f9f30549aa1cceaf12 /gtk2_ardour/editor_markers.cc
parentf0e40565a58ab907a036a59a2af99e325deeabdc (diff)
Move '++next' (when sorting marker labels) so there's absolutely no chance of incrementing it once it reaches the list end
Diffstat (limited to 'gtk2_ardour/editor_markers.cc')
-rw-r--r--gtk2_ardour/editor_markers.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk2_ardour/editor_markers.cc b/gtk2_ardour/editor_markers.cc
index 3fefa6af9a..1b937dad7d 100644
--- a/gtk2_ardour/editor_markers.cc
+++ b/gtk2_ardour/editor_markers.cc
@@ -360,11 +360,12 @@ Editor::update_marker_labels (ArdourCanvas::Group* group)
} else {
(*i)->set_right_label_limit (p);
}
+
+ ++next;
}
prev = i;
++i;
- ++next;
}
}