mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-12 08:25:03 -05:00
Use static_cast
p4#: 19154
This commit is contained in:
1 parent
0df00dc2fa
commit
fc5dda4957
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user