]> granicus.if.org Git - graphviz/commitdiff
When no port is defined, have record_path simply return box to center.
authorerg <devnull@localhost>
Fri, 10 Jun 2005 17:37:44 +0000 (17:37 +0000)
committererg <devnull@localhost>
Fri, 10 Jun 2005 17:37:44 +0000 (17:37 +0000)
lib/common/shapes.c

index 2e36aee2655182bdd6677cd9219f662895a8500b..ac5cb62b87a20cffda47c1f8b171ed0d8423dc83 100644 (file)
@@ -1776,6 +1776,7 @@ static int record_path(node_t* n, port* prt, int side, box rv[], int *kptr)
     point p;
     field_t *info;
 
+    if (!prt->defined) return 0;
     p = prt->p;
     info = (field_t *) ND_shape_info(n);