AutomatableModel: remove bogus assigment if step size is 0
No idea why we set value to m_minValue in case the step size is 0. There shouldn't be models with step size 0 nevertheless.
This commit is contained in:
@@ -282,10 +282,6 @@ float AutomatableModel::fittedValue( float value ) const
|
||||
{
|
||||
value = roundf( value / m_step ) * m_step;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = m_minValue;
|
||||
}
|
||||
|
||||
// correct rounding error at the border
|
||||
if( qAbs<float>( value - m_maxValue ) < typeInfo<float>::minEps() * qAbs<float>( m_step ) )
|
||||
|
||||
Reference in New Issue
Block a user