diff options
author | Robin Gareus <robin@gareus.org> | 2017-07-16 19:00:33 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-07-16 21:01:08 +0200 |
commit | 157d4b2c5750b38b103ecf5aa6f4c7641f481be4 (patch) | |
tree | 59bd0c1e41942279242e8e22cd207fb493fdb3b0 /libs/ardour/ardour/value_as_string.h | |
parent | 5b9822ab98074c29b7eba219c81265dde678429b (diff) |
Data less than or equal to zero should be considered "off"
Diffstat (limited to 'libs/ardour/ardour/value_as_string.h')
-rw-r--r-- | libs/ardour/ardour/value_as_string.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/ardour/value_as_string.h b/libs/ardour/ardour/value_as_string.h index dd5780580b..ed257d5cb5 100644 --- a/libs/ardour/ardour/value_as_string.h +++ b/libs/ardour/ardour/value_as_string.h @@ -48,7 +48,7 @@ value_as_string(const ARDOUR::ParameterDescriptor& desc, } if (desc.toggled) { - return v >= 0 ? _("on") : _("off"); + return v > 0 ? _("on") : _("off"); } // Value is not a scale point, print it normally |