Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.3
lmms
lmms-1.1.3-fix-wrong-comparison-logic.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File lmms-1.1.3-fix-wrong-comparison-logic.patch of Package lmms
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 ); }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor