From 84e2c5cbda9e6e01aba73b36cf8d4136b56eeef0 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 13 Oct 2007 06:58:44 +0000 Subject: Fix crash when control dragging on MIDI or OSC ports. git-svn-id: http://svn.drobilla.net/lad/ingen@878 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/gui/Port.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/libs/gui/Port.cpp b/src/libs/gui/Port.cpp index b02c0856..04d45f1d 100644 --- a/src/libs/gui/Port.cpp +++ b/src/libs/gui/Port.cpp @@ -108,9 +108,13 @@ Port::activity() void Port::set_control(float value, bool signal) { + if (_port_model->type() != DataType::CONTROL && _port_model->type() != DataType::AUDIO) + return; + if (signal) App::instance().engine()->set_port_value_immediate(_port_model->path(), "ingen:control", sizeof(float), &value); + FlowCanvas::Port::set_control(value); } -- cgit v1.2.1