13
0

Fix another -Wabsolute-value

This commit is contained in:
Robin Gareus 2023-02-08 03:50:21 +01:00
parent cc7219636f
commit cd6d7a8074
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -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() - .5f) < 0.006f) {
if (!detented && fabs (position_control->get_value() - .5) < 0.006) {
detented = true;
/* snap to center */
position_control->set_value (0.5, Controllable::NoGroup);