]> granicus.if.org Git - graphviz/commitdiff
Fix code so that layout of record shapes only depends on rankdir and
authorerg <devnull@localhost>
Tue, 12 Feb 2008 23:03:25 +0000 (23:03 +0000)
committererg <devnull@localhost>
Tue, 12 Feb 2008 23:03:25 +0000 (23:03 +0000)
not on the layout engine.

lib/common/shapes.c

index e252c41e1daeff384a67ae5a49e71dd6a274d5e1..c95506ce4234b1130b84cc8ce6d0d5088efa80db 100644 (file)
@@ -2016,10 +2016,8 @@ static void record_init(node_t * n)
     char *textbuf;             /* temp buffer for storing labels */
     int sides = BOTTOM | RIGHT | TOP | LEFT; 
 
-    if (Nop)
-       flip = NOT(GD_realflip(n->graph));
-    else
-       flip = NOT(GD_flip(n->graph));
+    /* Always use rankdir to determine how records are laid out */
+    flip = NOT(GD_realflip(n->graph));
     reclblp = ND_label(n)->text;
     len = strlen(reclblp);
     textbuf = N_NEW(len + 1, char);