projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b9822a
)
Data less than or equal to zero should be considered "off"
author
Robin Gareus
<robin@gareus.org>
Sun, 16 Jul 2017 17:00:33 +0000
(19:00 +0200)
committer
Robin Gareus
<robin@gareus.org>
Sun, 16 Jul 2017 19:01:08 +0000
(21:01 +0200)
libs/ardour/ardour/value_as_string.h
patch
|
blob
|
history
diff --git
a/libs/ardour/ardour/value_as_string.h
b/libs/ardour/ardour/value_as_string.h
index dd5780580bf393bbf5e64928ad474bd1773dd46e..ed257d5cb56767ea1f6fdb84a07e7ab09eaa881b 100644
(file)
--- 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