lmms/lmms-1.1.3-gcc-5.3.patch

28 lines
975 B
Diff

From 317b2f02a829f694a66c760fc6de7df1db99b006 Mon Sep 17 00:00:00 2001
From: Tobias Doerffel <tobias.doerffel@gmail.com>
Date: Mon, 16 Feb 2015 18:22:49 +0100
Subject: [PATCH] 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.
---
src/core/AutomatableModel.cpp | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/core/AutomatableModel.cpp b/src/core/AutomatableModel.cpp
index 6c7501c..bf56285 100644
--- a/src/core/AutomatableModel.cpp
+++ b/src/core/AutomatableModel.cpp
@@ -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 );
}