drawLinearSlider gives me the same value for minSliderPos and maxSliderPos

Hello,
I use drawLinearSlider() and there is param maxSliderPos which in my case is always the same as minSliderPos.

Those params are defined somewhere in Slider::Pimpl and I can’t find the way to debug it to follow the rules of defining maxSliderPos and minSliderPos. Please could anyone give me any advice what could be wrong in my code. Is it something that should be managed in getSliderLayout or maybe it has something to do with Slider::setRange()?

For any help great thanks in advance.
Best regards.

Hi,
from the back of my head these two getters are only relevant for two value sliders (sliders having two adjustable positions, a min and a max position).

Aha… Ok, so thanks. Now I understand.

See here:
https://docs.juce.com/master/classSlider.html#a2f8d0736f0fd0ebf95eeda2e1bd155bf