Linux complie fix

This commit is contained in:
Jacob Støren 2016-09-29 14:55:56 +02:00
parent 2fa72385ea
commit ca71b03d80

View File

@ -222,7 +222,7 @@ int PdmUiDoubleSliderEditor::convertToSliderValue(double value)
{
double exactSliderValue = m_slider->maximum() * (value - m_attributes.m_minimum) / (m_attributes.m_maximum - m_attributes.m_minimum);
int sliderValue = static_cast<int>(nearbyint( exactSliderValue));
int sliderValue = static_cast<int>( exactSliderValue + 0.5);
sliderValue = qBound(m_slider->minimum(), sliderValue, m_slider->maximum());
return sliderValue;