summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_markers.cc
diff options
context:
space:
mode:
authornick_m <mainsbridge@gmail.com>2017-02-27 12:00:25 +1100
committerRobin Gareus <robin@gareus.org>2017-02-27 20:16:10 +0100
commit25d78ef30622e8d9591bd9632c733f05f4b90fea (patch)
tree87a582fc4db652f466e05f6163ced00e7974cbf1 /gtk2_ardour/editor_markers.cc
parentf69f5467177e214a1f9808152c29848ce5eb1b8d (diff)
only allow 'ramp to next' if the next tempo is actually different.
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 f885537393..c2b09f171c 100644
--- a/gtk2_ardour/editor_markers.cc
+++ b/gtk2_ardour/editor_markers.cc
@@ -995,7 +995,8 @@ Editor::build_tempo_marker_menu (TempoMarker* loc, bool can_remove)
items.push_back (MenuElem (_("Set Constant"), sigc::mem_fun(*this, &Editor::toggle_tempo_type)));
}
- if (_session->tempo_map().next_tempo_section (&loc->tempo())) {
+ TempoSection* next_ts = _session->tempo_map().next_tempo_section (&loc->tempo());
+ if (next_ts && next_ts->note_types_per_minute() != loc->tempo().end_note_types_per_minute()) {
items.push_back (MenuElem (_("Ramp to Next"), sigc::mem_fun(*this, &Editor::ramp_to_next_tempo)));
}