AutomatableModel: do not change init value when adjusting range

This causes e.g. the default value of the pitch model to be changed
when changing the pitch range.
This commit is contained in:
Tobias Doerffel
2014-01-26 14:05:22 +01:00
parent c77531fef2
commit 8c9778c945

View File

@@ -253,7 +253,7 @@ void AutomatableModel::setRange( const float min, const float max,
setStep( step );
// re-adjust value
setInitValue( value<float>() );
setValue( value<float>() );
emit propertiesChanged();
}