mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 07:45:00 +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,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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue