]> granicus.if.org Git - graphviz/commitdiff
Fix bug in the use of the fixed attribute. This should not override settings
authorerg <devnull@localhost>
Thu, 17 Feb 2005 23:09:25 +0000 (23:09 +0000)
committererg <devnull@localhost>
Thu, 17 Feb 2005 23:09:25 +0000 (23:09 +0000)
within subgraphs.

lib/graph/parser.y

index 5e40c88efcbafcca34e5113180d1a447edcd8809..b51169aa4319f45fd0c403989ea11bbe415a6ed7 100644 (file)
@@ -236,7 +236,7 @@ static void attr_set(char *name, char *value)
                        ap = agfindattr(G->proto->e,name);
                        if (ap == NULL)
                                ap = agedgeattr(AG.parsed_g,name,defval);
-            else if (ap->fixed && In_decl)
+            else if (ap->fixed && In_decl && (G->root == G))
               return;
                        agxset(E,ap->index,value);
                        break;