diff --git a/AppKit/CPSlider.j b/AppKit/CPSlider.j index b89daa56d..04c7f5ce8 100644 --- a/AppKit/CPSlider.j +++ b/AppKit/CPSlider.j @@ -312,8 +312,11 @@ var AFFINITY = 5; if (!trackRect || CGRectIsEmpty(trackRect)) trackRect = bounds; - [self closestTickMarkValueToValue:[self doubleValue]]; // we only need the side effect … - _currentTickMarkSegment = _closestTickMarkIndex; // … when "Only stop on tick marks" selected + if (_allowsTickMarkValuesOnly) + { + [self closestTickMarkValueToValue:[self doubleValue]]; // we only need the side effect … + _currentTickMarkSegment = _closestTickMarkIndex; + } if (_isCircular) {