From 157d4b2c5750b38b103ecf5aa6f4c7641f481be4 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 16 Jul 2017 19:00:33 +0200 Subject: [PATCH] Data less than or equal to zero should be considered "off" --- libs/ardour/ardour/value_as_string.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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