Slider::setRange() and skew factor

the following used to work :

slider.setSkewFactor (0.3);
slider.setRange (0., 100.);

but with the recent changes with the use of NormalisableRange it does not work anymore, because slider::setRange() is not taking into account the existing skew factor when creating a new NormalisableRange.
fix :

void setRange (double newMin, double newMax, double newInt)
    normRange = NormalisableRange<double> (newMin, newMax, newInt,
                                           normRange.skew, normRange.symmetricSkew);

Thanks for reporting. I’ll get this fixed.

1 Like