mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-21 22:13:25 -06:00
Linux complie fix
This commit is contained in:
parent
2fa72385ea
commit
ca71b03d80
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user