mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-06 13:45:43 +01:00
avoid non-integer loop conditions.
This commit is contained in:
parent
95631cdc25
commit
50041cb450
2 changed files with 5 additions and 4 deletions
|
|
@ -303,10 +303,10 @@ AutomationController::on_button_release(GdkEventButton* ev)
|
|||
sigc::mem_fun(*this, &AutomationController::run_note_select_dialog)));
|
||||
}
|
||||
if (is_low) {
|
||||
for (double beats = 1.0; beats <= 16; ++beats) {
|
||||
for (int beats = 1; beats <= 16; ++beats) {
|
||||
items.push_back(MenuElem(string_compose(_("Set to %1 beat(s)"), (int)beats),
|
||||
sigc::bind(sigc::mem_fun(*this, &AutomationController::set_freq_beats),
|
||||
beats)));
|
||||
(double)beats)));
|
||||
}
|
||||
}
|
||||
menu->popup(1, ev->time);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue