diff options
author | David Robillard <d@drobilla.net> | 2015-02-20 14:10:33 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2015-02-20 14:10:33 +0000 |
commit | f72d96a22f98be764cc687ff63258400b8c940ca (patch) | |
tree | 31c56e7489709d886f0c7bfd859ce68528c11c09 | |
parent | 0fae9e20897ec1efaf8ea2181f642835f6732506 (diff) | |
download | ganv-f72d96a22f98be764cc687ff63258400b8c940ca.tar.gz ganv-f72d96a22f98be764cc687ff63258400b8c940ca.tar.bz2 ganv-f72d96a22f98be764cc687ff63258400b8c940ca.zip |
Fix connecting to ports with controls.
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5589 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r-- | src/Canvas.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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))) { |