Data less than or equal to zero should be considered "off"
authorRobin Gareus <robin@gareus.org>
Sun, 16 Jul 2017 17:00:33 +0000 (19:00 +0200)
committerRobin Gareus <robin@gareus.org>
Sun, 16 Jul 2017 19:01:08 +0000 (21:01 +0200)
libs/ardour/ardour/value_as_string.h

index dd5780580bf393bbf5e64928ad474bd1773dd46e..ed257d5cb56767ea1f6fdb84a07e7ab09eaa881b 100644 (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