diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2015-10-21 07:53:21 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2015-10-21 07:53:26 -0400 |
commit | 6e7ca06f635255aa3aecaa7fd03ddaae41002579 (patch) | |
tree | c17671f472079a5a544fd719a6681a72f6261411 /libs/pbd/pbd | |
parent | 7a453d232923fc287f93bb0910e9c0bafc375a57 (diff) |
ensure that mutator function for CONFIG_VARIABLE_SPECIAL is used when assigning initial value during construction
Diffstat (limited to 'libs/pbd/pbd')
-rw-r--r-- | libs/pbd/pbd/configuration_variable.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/pbd/pbd/configuration_variable.h b/libs/pbd/pbd/configuration_variable.h index 86c13b0f28..6bdf0f7868 100644 --- a/libs/pbd/pbd/configuration_variable.h +++ b/libs/pbd/pbd/configuration_variable.h @@ -167,7 +167,7 @@ class /*LIBPBD_API*/ ConfigVariableWithMutation : public ConfigVariable<T> { public: ConfigVariableWithMutation (std::string name, T val, T (*m)(T)) - : ConfigVariable<T> (name, val), mutator (m) {} + : ConfigVariable<T> (name, m (val)), unmutated_value (val), mutator (m) {} bool set (T val) { if (unmutated_value != val) { |