Fix for connections to patch ports.
git-svn-id: http://svn.drobilla.net/lad@138 a436a847-0d15-0410-975c-d299462d15a1
This commit is contained in:
parent
d8e4524127
commit
64370e1bfa
|
@ -234,8 +234,11 @@ PatchModel::add_connection(CountedPtr<ConnectionModel> cm)
|
|||
// Store should have 'resolved' the connection already
|
||||
assert(cm);
|
||||
assert(cm->patch_path() == path());
|
||||
assert(cm->src_port() && cm->src_port()->parent()->parent().get() == this);
|
||||
assert(cm->dst_port() && cm->dst_port()->parent()->parent().get() == this);
|
||||
assert(cm->src_port());
|
||||
assert(cm->src_port()->parent()->parent().get() == this
|
||||
|| cm->src_port()->parent().get() == this);
|
||||
assert(cm->dst_port()->parent()->parent().get() == this
|
||||
|| cm->dst_port()->parent().get() == this);
|
||||
|
||||
CountedPtr<ConnectionModel> existing = get_connection(cm->src_port_path(), cm->dst_port_path());
|
||||
assert(!existing); // Store should have handled this
|
||||
|
|
Loading…
Reference in New Issue