only allow 'ramp to next' if the next tempo is actually different.

This commit is contained in:
nick_m 2017-02-27 12:00:25 +11:00 committed by Robin Gareus
parent f69f546717
commit 25d78ef306
1 changed files with 2 additions and 1 deletions

View File

@ -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)));
}