summaryrefslogtreecommitdiff
path: root/gtk2_ardour/automation_controller.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gtk2_ardour/automation_controller.cc')
-rw-r--r--gtk2_ardour/automation_controller.cc4
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);