mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -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);
|
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());
|
sliderValue = qBound(m_slider->minimum(), sliderValue, m_slider->maximum());
|
||||||
|
|
||||||
return sliderValue;
|
return sliderValue;
|
||||||
|
Loading…
Reference in New Issue
Block a user