From f72d96a22f98be764cc687ff63258400b8c940ca Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 20 Feb 2015 14:10:33 +0000 Subject: Fix connecting to ports with controls. git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5589 a436a847-0d15-0410-975c-d299462d15a1 --- src/Canvas.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Canvas.cpp b/src/Canvas.cpp index 695e3c3..daacc1d 100644 --- a/src/Canvas.cpp +++ b/src/Canvas.cpp @@ -1432,7 +1432,7 @@ GanvCanvasImpl::port_event(GdkEvent* event, GanvPort* port) double port_y = event->button.y; ganv_item_w2i(GANV_ITEM(port), &port_x, &port_y); - if (module && port->impl->control && + if (_selected_ports.empty() && module && port->impl->control && (port->impl->is_input || (port->impl->is_controllable && port_x < ganv_box_get_width(GANV_BOX(port)) / 2.0))) { -- cgit v1.2.1