summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gtk2_ardour/mono_panner.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/mono_panner.cc b/gtk2_ardour/mono_panner.cc
index 6c113e122c..fb01fb53b3 100644
--- a/gtk2_ardour/mono_panner.cc
+++ b/gtk2_ardour/mono_panner.cc
@@ -420,7 +420,7 @@ MonoPanner::on_motion_notify_event (GdkEventMotion* ev)
double delta = (ev->x - last_drag_x) / (double) w;
/* create a detent close to the center, at approx 1/180 deg */
- if (!detented && fabsf (position_control->get_value() - .5) < 0.006) {
+ if (!detented && fabsf (position_control->get_value() - .5f) < 0.006f) {
detented = true;
/* snap to center */
position_control->set_value (0.5, Controllable::NoGroup);