// minValue > maxValue not handled, tickMarks set to 0
if ( style & wxSL_AUTOTICKS )
tickMarks = ((maxValue - minValue >= 0) ? (maxValue - minValue) : 0);
- // arg2 needed a value, doesnt do anything
- SetTickFreq(tickMarks,1);
+ SetTickFreq(tickMarks);
return true;
}
return [GetNSSlider() maxValue];
}
-void wxSlider::SetTickFreq(int n, int pos)
+void wxSlider::DoSetTickFreq(int n)
{
const int numTicks = (n > 0) ? ((GetMax() - GetMin()) / n) + 1 : 0;
[GetNSSlider() setNumberOfTickMarks:numTicks];