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:
Tobias Doerffel
2014-02-13 01:12:42 +01:00
parent 592ab25c57
commit f329bccb6b

View File

@@ -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 ) )