Skip to content
Snippets Groups Projects
Commit 59548426 authored by Antoine Regimbeau's avatar Antoine Regimbeau
Browse files

BUG: take min and max value into account : clamp when setting outside

parent 535f6038
No related branches found
No related tags found
No related merge requests found
......@@ -62,8 +62,8 @@ public:
/** Set the value */
void SetValue( ScalarType value)
{
// TODO check minimum/maximum
m_Value = value;
m_Value = ( value < m_MinimumValue ) ? m_MinimumValue :
( value < m_MaximumValue ) ? value : m_MaximumValue ;
// Set Active only if the parameter is not automatically set
if (!GetAutomaticValue())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment