projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f69f546
)
only allow 'ramp to next' if the next tempo is actually different.
author
nick_m
<mainsbridge@gmail.com>
Mon, 27 Feb 2017 01:00:25 +0000
(12:00 +1100)
committer
Robin Gareus
<robin@gareus.org>
Mon, 27 Feb 2017 19:16:10 +0000
(20:16 +0100)
gtk2_ardour/editor_markers.cc
patch
|
blob
|
history
diff --git
a/gtk2_ardour/editor_markers.cc
b/gtk2_ardour/editor_markers.cc
index f885537393a859ebdaab6eae4138c95eb4dcd55f..c2b09f171c845c94a78ab5d511aa3b5d9ec973a2 100644
(file)
--- 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)));
}