summaryrefslogtreecommitdiffstats
path: root/src/libavoid/makepath.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/libavoid/makepath.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libavoid/makepath.cpp b/src/libavoid/makepath.cpp
index 776ffd307..37b4f1801 100644
--- a/src/libavoid/makepath.cpp
+++ b/src/libavoid/makepath.cpp
@@ -429,6 +429,10 @@ void makePath(ConnRef *lineRef, bool *flag)
// each other. This is true if we are here.
if (!IncludeEndpoints && InvisibilityGrph)
{
+ if (!directEdge)
+ {
+ directEdge = new EdgeInf(src, tar);
+ }
directEdge->addBlocker(0);
}