AutomatableModel: fix wrong comparison logic

We must not negate the float but instead test for inequality in order to
determine whether the linked model has to be updated.

Closes #1761.
This commit is contained in:
Tobias Doerffel
2015-02-16 18:22:49 +01:00
parent 7bd5317499
commit 317b2f02a8

View File

@@ -318,8 +318,7 @@ void AutomatableModel::setAutomatedValue( const float value )
it != m_linkedModels.end(); ++it )
{
if( (*it)->m_setValueDepth < 1 &&
!(*it)->fittedValue( m_value ) !=
(*it)->m_value )
(*it)->fittedValue( m_value ) != (*it)->m_value )
{
(*it)->setAutomatedValue( value );
}