mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
amend 4cb009058 (if newly active tempo became last it had no curve)
This commit is contained in:
parent
45a8cc7563
commit
2ca06335f7
1 changed files with 14 additions and 14 deletions
|
|
@ -141,17 +141,17 @@ Editor::draw_metric_marks (const Metrics& metrics)
|
||||||
(*x)->set_min_tempo (min_tempo);
|
(*x)->set_min_tempo (min_tempo);
|
||||||
++tmp;
|
++tmp;
|
||||||
if (tmp != tempo_curves.end()) {
|
if (tmp != tempo_curves.end()) {
|
||||||
|
|
||||||
if (!(*x)->tempo().active()) {
|
|
||||||
(*x)->hide();
|
|
||||||
} else {
|
|
||||||
(*x)->show();
|
|
||||||
}
|
|
||||||
|
|
||||||
(*x)->set_position ((*x)->tempo().frame(), (*tmp)->tempo().frame());
|
(*x)->set_position ((*x)->tempo().frame(), (*tmp)->tempo().frame());
|
||||||
} else {
|
} else {
|
||||||
(*x)->set_position ((*x)->tempo().frame(), UINT32_MAX);
|
(*x)->set_position ((*x)->tempo().frame(), UINT32_MAX);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!(*x)->tempo().active()) {
|
||||||
|
(*x)->hide();
|
||||||
|
} else {
|
||||||
|
(*x)->show();
|
||||||
|
}
|
||||||
|
|
||||||
++x;
|
++x;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -250,17 +250,17 @@ Editor::marker_position_changed ()
|
||||||
(*x)->set_min_tempo (min_tempo);
|
(*x)->set_min_tempo (min_tempo);
|
||||||
++tmp;
|
++tmp;
|
||||||
if (tmp != tempo_curves.end()) {
|
if (tmp != tempo_curves.end()) {
|
||||||
|
|
||||||
if (!(*x)->tempo().active()) {
|
|
||||||
(*x)->hide();
|
|
||||||
} else {
|
|
||||||
(*x)->show();
|
|
||||||
}
|
|
||||||
|
|
||||||
(*x)->set_position ((*x)->tempo().frame(), (*tmp)->tempo().frame());
|
(*x)->set_position ((*x)->tempo().frame(), (*tmp)->tempo().frame());
|
||||||
} else {
|
} else {
|
||||||
(*x)->set_position ((*x)->tempo().frame(), UINT32_MAX);
|
(*x)->set_position ((*x)->tempo().frame(), UINT32_MAX);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!(*x)->tempo().active()) {
|
||||||
|
(*x)->hide();
|
||||||
|
} else {
|
||||||
|
(*x)->show();
|
||||||
|
}
|
||||||
|
|
||||||
++x;
|
++x;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue