From 8c9778c945aad25936594fd08680f50923610d93 Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Sun, 26 Jan 2014 14:05:22 +0100 Subject: [PATCH] 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. --- src/core/AutomatableModel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/AutomatableModel.cpp b/src/core/AutomatableModel.cpp index a9a3b5147..56791ade4 100644 --- a/src/core/AutomatableModel.cpp +++ b/src/core/AutomatableModel.cpp @@ -253,7 +253,7 @@ void AutomatableModel::setRange( const float min, const float max, setStep( step ); // re-adjust value - setInitValue( value() ); + setValue( value() ); emit propertiesChanged(); }