fixed wrong logic in automatableModel::setValue() which led to bugs when changing linked controls to 0 (stable backport)
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/branches/lmms/stable-0.4@1846 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
2008-11-22 Tobias Doerffel <tobydox/at/users/dot/sourceforge/dot/net>
|
||||
|
||||
* src/core/automatable_model.cpp:
|
||||
fixed wrong logic in automatableModel::setValue() which led to bugs when
|
||||
changing linked controls to 0
|
||||
|
||||
* src/gui/file_browser.cpp:
|
||||
do not allow to import unhandled file types, e.g. ZynAddSubFX presets if
|
||||
plugin is not available (closes #2326384)
|
||||
|
||||
@@ -83,7 +83,7 @@ automatableModel::~automatableModel()
|
||||
|
||||
bool automatableModel::isAutomated( void ) const
|
||||
{
|
||||
return( automationPattern::isAutomated( this ) );
|
||||
return automationPattern::isAutomated( this );
|
||||
}
|
||||
|
||||
|
||||
@@ -193,12 +193,12 @@ void automatableModel::setValue( const float _value )
|
||||
it != m_linkedModels.end(); ++it )
|
||||
{
|
||||
if( (*it)->m_setValueDepth < 1 &&
|
||||
!(*it)->fittedValue( m_value ) !=
|
||||
(*it)->fittedValue( _value ) !=
|
||||
(*it)->m_value )
|
||||
{
|
||||
bool journalling = (*it)->testAndSetJournalling(
|
||||
isJournalling() );
|
||||
(*it)->setValue( m_value );
|
||||
(*it)->setValue( _value );
|
||||
(*it)->setJournalling( journalling );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user