summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2016-10-02 19:30:15 -0400
committerDavid Robillard <d@drobilla.net>2016-10-02 19:30:15 -0400
commit84960435d40ed4726d17e5fe4ab5caac791ec2e5 (patch)
treee2a6a30c3301e9a043b83a6bfc4bab710e9de7dd /src
parent96ad50eace0ce62e6d0646760c8b039549be14f6 (diff)
downloadganv-84960435d40ed4726d17e5fe4ab5caac791ec2e5.tar.gz
ganv-84960435d40ed4726d17e5fe4ab5caac791ec2e5.tar.bz2
ganv-84960435d40ed4726d17e5fe4ab5caac791ec2e5.zip
Round reported value for integer control ports
Diffstat (limited to 'src')
-rw-r--r--src/port.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/port.c b/src/port.c
index 7810cce..aeca543 100644
--- a/src/port.c
+++ b/src/port.c
@@ -639,7 +639,7 @@ ganv_port_set_control_value_internal(GanvPort* port,
ganv_port_set_control_value(port, value);
// Fire signal to notify user value has changed
- const double dvalue = value;
+ const double dvalue = port->impl->control->value;
g_signal_emit(port, port_signals[PORT_VALUE_CHANGED], 0, dvalue, NULL);
}