diff --git a/rtgui/shcselector.cc b/rtgui/shcselector.cc index d7e92036a..ef018e246 100644 --- a/rtgui/shcselector.cc +++ b/rtgui/shcselector.cc @@ -217,7 +217,7 @@ bool SHCSelector::on_motion_notify_event (GdkEventMotion* event) { positions[movingPosition] = positions[movingPosition-1]+wslider/w; if (positions[movingPosition] > 1.0) positions[movingPosition] = 1.0; - else if (movingPosition <3 && positions[movingPosition] > positions[movingPosition+1]-wslider/w) + else if (movingPosition < 2 && positions[movingPosition] > positions[movingPosition+1]-wslider/w) positions[movingPosition] = positions[movingPosition+1]-wslider/w; if (cl)