Fix a compiler warning std::abs vs fabsf
This commit is contained in:
parent
a47fac7638
commit
d387a6d664
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user