summaryrefslogtreecommitdiffstats
path: root/src/libs/engine/ConnectionImpl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/engine/ConnectionImpl.cpp')
-rw-r--r--src/libs/engine/ConnectionImpl.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libs/engine/ConnectionImpl.cpp b/src/libs/engine/ConnectionImpl.cpp
index 49e8f7f7..4114e7ae 100644
--- a/src/libs/engine/ConnectionImpl.cpp
+++ b/src/libs/engine/ConnectionImpl.cpp
@@ -47,6 +47,8 @@ ConnectionImpl::ConnectionImpl(PortImpl* src_port, PortImpl* dst_port)
{
assert(src_port);
assert(dst_port);
+ assert(src_port != dst_port);
+ assert(src_port->path() != dst_port->path());
assert(src_port->type() == dst_port->type());
/*assert((src_port->parent_node()->poly() == dst_port->parent_node()->poly())