From 6e7ca06f635255aa3aecaa7fd03ddaae41002579 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 21 Oct 2015 07:53:21 -0400 Subject: [PATCH] ensure that mutator function for CONFIG_VARIABLE_SPECIAL is used when assigning initial value during construction --- libs/pbd/pbd/configuration_variable.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { public: ConfigVariableWithMutation (std::string name, T val, T (*m)(T)) - : ConfigVariable (name, val), mutator (m) {} + : ConfigVariable (name, m (val)), unmutated_value (val), mutator (m) {} bool set (T val) { if (unmutated_value != val) {