diff options
author | Robin Gareus <robin@gareus.org> | 2015-03-08 02:01:48 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-03-08 02:01:48 +0100 |
commit | 50041cb4507e03af605286fc878cf92e953a3d86 (patch) | |
tree | 51ca3d8f5db8249229cf8efed7730a95e2a8dfd3 /gtk2_ardour/automation_controller.cc | |
parent | 95631cdc25b4643add09a45e55228375ef159e58 (diff) |
avoid non-integer loop conditions.
Diffstat (limited to 'gtk2_ardour/automation_controller.cc')
-rw-r--r-- | gtk2_ardour/automation_controller.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/automation_controller.cc b/gtk2_ardour/automation_controller.cc index 980b38ad65..30ff656314 100644 --- a/gtk2_ardour/automation_controller.cc +++ b/gtk2_ardour/automation_controller.cc @@ -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); |