Data less than or equal to zero should be considered "off"

This commit is contained in:
Robin Gareus 2017-07-16 19:00:33 +02:00
parent 5b9822ab98
commit 157d4b2c57

View File

@ -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