amend 4cb009058 (if newly active tempo became last it had no curve)

This commit is contained in:
nick_m 2017-01-07 03:39:24 +11:00
parent 45a8cc7563
commit 2ca06335f7

View file

@ -141,6 +141,10 @@ Editor::draw_metric_marks (const Metrics& metrics)
(*x)->set_min_tempo (min_tempo);
++tmp;
if (tmp != tempo_curves.end()) {
(*x)->set_position ((*x)->tempo().frame(), (*tmp)->tempo().frame());
} else {
(*x)->set_position ((*x)->tempo().frame(), UINT32_MAX);
}
if (!(*x)->tempo().active()) {
(*x)->hide();
@ -148,10 +152,6 @@ Editor::draw_metric_marks (const Metrics& metrics)
(*x)->show();
}
(*x)->set_position ((*x)->tempo().frame(), (*tmp)->tempo().frame());
} else {
(*x)->set_position ((*x)->tempo().frame(), UINT32_MAX);
}
++x;
}
@ -250,6 +250,10 @@ Editor::marker_position_changed ()
(*x)->set_min_tempo (min_tempo);
++tmp;
if (tmp != tempo_curves.end()) {
(*x)->set_position ((*x)->tempo().frame(), (*tmp)->tempo().frame());
} else {
(*x)->set_position ((*x)->tempo().frame(), UINT32_MAX);
}
if (!(*x)->tempo().active()) {
(*x)->hide();
@ -257,10 +261,6 @@ Editor::marker_position_changed ()
(*x)->show();
}
(*x)->set_position ((*x)->tempo().frame(), (*tmp)->tempo().frame());
} else {
(*x)->set_position ((*x)->tempo().frame(), UINT32_MAX);
}
++x;
}