From f329bccb6bef6367fc6707433d8e2b2339657eac Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Thu, 13 Feb 2014 01:12:42 +0100 Subject: [PATCH] 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. --- src/core/AutomatableModel.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/core/AutomatableModel.cpp b/src/core/AutomatableModel.cpp index 56791ade4..d8b4023eb 100644 --- a/src/core/AutomatableModel.cpp +++ b/src/core/AutomatableModel.cpp @@ -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( value - m_maxValue ) < typeInfo::minEps() * qAbs( m_step ) )