summaryrefslogtreecommitdiffstats
path: root/src/libs/engine/events/ConnectionEvent.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2006-07-04 00:08:00 +0000
committerDavid Robillard <d@drobilla.net>2006-07-04 00:08:00 +0000
commit2d518cb42f7707503efc289badb4cac9a3396a17 (patch)
tree9d22839d5f64ec26405ca0cfd2bec1166ddad437 /src/libs/engine/events/ConnectionEvent.cpp
parent62d76290ae0eb783db0e24338c17adb08d845a73 (diff)
downloadingen-2d518cb42f7707503efc289badb4cac9a3396a17.tar.gz
ingen-2d518cb42f7707503efc289badb4cac9a3396a17.tar.bz2
ingen-2d518cb42f7707503efc289badb4cac9a3396a17.zip
Process order traversal / connection fixes (nasty edge cases where patches are involved)
git-svn-id: http://svn.drobilla.net/lad/ingen@82 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/events/ConnectionEvent.cpp')
-rw-r--r--src/libs/engine/events/ConnectionEvent.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libs/engine/events/ConnectionEvent.cpp b/src/libs/engine/events/ConnectionEvent.cpp
index 652fe801..0faff865 100644
--- a/src/libs/engine/events/ConnectionEvent.cpp
+++ b/src/libs/engine/events/ConnectionEvent.cpp
@@ -215,8 +215,8 @@ TypedConnectionEvent<T>::pre_process()
m_patch_listnode = new ListNode<Connection*>(m_connection);
// Need to be careful about patch port connections here and adding a node's
- // parent as a dependant/provider...
- if (src_node->parent() == dst_node->parent()) {
+ // parent as a dependant/provider, or adding a patch as it's own provider...
+ if (src_node != dst_node && src_node->parent() == dst_node->parent()) {
dst_node->providers()->push_back(new ListNode<Node*>(src_node));
src_node->dependants()->push_back(new ListNode<Node*>(dst_node));
}