mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-21 14:16:31 +01:00
ensure that mutator function for CONFIG_VARIABLE_SPECIAL is used when assigning initial value during construction
This commit is contained in:
parent
7a453d2329
commit
6e7ca06f63
1 changed files with 1 additions and 1 deletions
|
|
@ -167,7 +167,7 @@ class /*LIBPBD_API*/ ConfigVariableWithMutation : public ConfigVariable<T>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ConfigVariableWithMutation (std::string name, T val, T (*m)(T))
|
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) {
|
bool set (T val) {
|
||||||
if (unmutated_value != val) {
|
if (unmutated_value != val) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue