From f413b83cb9fa50954969a3d849999e1890ce6690 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 1 Jul 2017 18:31:55 +0200 Subject: [PATCH] Fix thinko in dd3f922788 --- libs/ardour/lv2_plugin.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ardour/lv2_plugin.cc b/libs/ardour/lv2_plugin.cc index 4441a58269..d1cf26f266 100644 --- a/libs/ardour/lv2_plugin.cc +++ b/libs/ardour/lv2_plugin.cc @@ -1806,7 +1806,7 @@ load_parameter_descriptor_units(LilvWorld* lworld, ParameterDescriptor& desc, co desc.print_fmt = lilv_node_as_string(render); /* override lilv's default "%f" format */ if (desc.integer_step) { - replace_all (desc.print_fmt, "%f", "%d"); + replace_all (desc.print_fmt, "%f", "%.0f"); } else if (desc.upper - desc.lower >= 1000) { replace_all (desc.print_fmt, "%f", "%.1f"); } else if (desc.upper - desc.lower >= 100) {