diff options
author | David Robillard <d@drobilla.net> | 2013-11-01 02:48:52 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2013-11-01 02:48:52 +0000 |
commit | 77db83931a7002336f55b182f9378e2d38e23ca4 (patch) | |
tree | 067404c868847f326c1b526d8a12ca08964b2994 /utils | |
parent | 40ec4d79702be71525994d23e4a2d950ce945b75 (diff) | |
download | lilv-77db83931a7002336f55b182f9378e2d38e23ca4.tar.gz lilv-77db83931a7002336f55b182f9378e2d38e23ca4.tar.bz2 lilv-77db83931a7002336f55b182f9378e2d38e23ca4.zip |
lv2info: Don't display invalid control maxes and defaults (fix #934).
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@5166 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'utils')
-rw-r--r-- | utils/lv2info.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/lv2info.c b/utils/lv2info.c index 3dc7a09..d20789e 100644 --- a/utils/lv2info.c +++ b/utils/lv2info.c @@ -118,9 +118,9 @@ print_port(const LilvPlugin* p, if (lilv_port_is_a(p, port, control_class)) { if (!isnan(mins[index])) printf("\t\tMinimum: %f\n", mins[index]); - if (!isnan(mins[index])) + if (!isnan(maxes[index])) printf("\t\tMaximum: %f\n", maxes[index]); - if (!isnan(mins[index])) + if (!isnan(defaults[index])) printf("\t\tDefault: %f\n", defaults[index]); } |