mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Use static_cast
p4#: 19154
This commit is contained in:
parent
0df00dc2fa
commit
fc5dda4957
@ -197,7 +197,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 = exactSliderValue;
|
||||
int sliderValue = static_cast<int>(exactSliderValue);
|
||||
sliderValue = qBound(m_slider->minimum(), sliderValue, m_slider->maximum());
|
||||
|
||||
return sliderValue;
|
||||
|
Loading…
Reference in New Issue
Block a user