]> granicus.if.org Git - graphviz/commitdiff
Fix incorrect access of an edge's graph - needs to go through one of its
authorerg <devnull@localhost>
Mon, 23 May 2005 20:45:20 +0000 (20:45 +0000)
committererg <devnull@localhost>
Mon, 23 May 2005 20:45:20 +0000 (20:45 +0000)
nodes.

lib/common/htmltable.c

index 75753a2914d0a07d2fcad160e689015d7edb9e00..1b89e5105b64ce91bda53a4a477127c81152ea85 100644 (file)
@@ -1432,9 +1432,11 @@ int make_html_label(textlabel_t * lp, void *obj)
        env.g = ((Agraph_t *) obj)->root;
        break;
     case AGNODE:
-    case AGEDGE:
        env.g = ((Agnode_t *) obj)->graph;
        break;
+    case AGEDGE:
+       env.g = ((Agedge_t *) obj)->head->graph;
+       break;
     }
     env.finfo.size = lp->fontsize;
     env.finfo.name = lp->fontname;