only allow 'ramp to next' if the next tempo is actually different.
authornick_m <mainsbridge@gmail.com>
Mon, 27 Feb 2017 01:00:25 +0000 (12:00 +1100)
committerRobin Gareus <robin@gareus.org>
Mon, 27 Feb 2017 19:16:10 +0000 (20:16 +0100)
gtk2_ardour/editor_markers.cc

index f885537393a859ebdaab6eae4138c95eb4dcd55f..c2b09f171c845c94a78ab5d511aa3b5d9ec973a2 100644 (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)));
        }