Skip to content

Commit

Permalink
APVTS: Fixed a bug mapping parameters defined by a NormalisableRange …
Browse files Browse the repository at this point in the history
…to a SliderAttachment
  • Loading branch information
tpoole committed Aug 6, 2018
1 parent a282492 commit a10a0d5
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -454,7 +454,7 @@ struct AudioProcessorValueTreeState::SliderAttachment::Pimpl : private Attached
{
NormalisableRange<float> range (state.getParameterRange (paramID));

if (range.interval != 0 || range.skew != 0)
if (range.interval != 0.0f || range.skew != 1.0f)
{
slider.setRange (range.start, range.end, range.interval);
slider.setSkewFactor (range.skew, range.symmetricSkew);
Expand Down

0 comments on commit a10a0d5

Please sign in to comment.