example browser: fix 'clamp-to-integer' on GUI-sliders

This commit is contained in:
Lunkhound
2017-05-22 00:48:07 -07:00
parent 861766f1d5
commit 03aa178ca5

View File

@@ -237,7 +237,7 @@ void GwenParameterInterface::registerSliderFloatParameter(SliderParams& params)
if (params.m_clampToIntegers) if (params.m_clampToIntegers)
{ {
pSlider->SetNotchCount( int( params.m_maxVal - params.m_minVal ) ); pSlider->SetNotchCount( int( params.m_maxVal - params.m_minVal ) );
pSlider->SetClampToNotches( params.m_clampToNotches ); pSlider->SetClampToNotches( true );
} }
else else
{ {