AutomatableModel: always fit value from linked model
When using value from linked model, make sure to fit it into own range as otherwise this can cause out-of-boundary accesses e.g. in ComboBoxModel. Closes #505.
This commit is contained in:
@@ -445,10 +445,10 @@ float AutomatableModel::controllerValue( int frameOffset ) const
|
||||
AutomatableModel* lm = m_linkedModels.first();
|
||||
if( lm->controllerConnection() )
|
||||
{
|
||||
return lm->controllerValue( frameOffset );
|
||||
return fittedValue( lm->controllerValue( frameOffset ) );
|
||||
}
|
||||
|
||||
return lm->m_value;
|
||||
return fittedValue( lm->m_value );
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user