]> granicus.if.org Git - graphviz/commitdiff
Fix setting default attributes.
authorerg <devnull@localhost>
Mon, 30 Jun 2008 20:38:13 +0000 (20:38 +0000)
committererg <devnull@localhost>
Mon, 30 Jun 2008 20:38:13 +0000 (20:38 +0000)
cmd/gvpr/compile.c

index 046265077ed3dbb0c9f76b3b4410401f29c3b754..31b794e5de2c8bb686bbe54f4b26132726fee854 100644 (file)
@@ -440,7 +440,6 @@ static char *getArg(int n, Gpr_t * state)
 static int
 setDfltAttr (Agraph_t *gp, char* k, char* name, char* value)
 {
-    Agsym_t* sym;
     int kind;
 
     switch (*k) {
@@ -458,10 +457,6 @@ setDfltAttr (Agraph_t *gp, char* k, char* name, char* value)
        return 1;
        break;
     }
-    sym = agattr(gp, kind, name, 0);
-    if (!sym)
-       sym = agattr(gp, kind, name, "");
-
     agattr(gp, kind, name, value);
     return 0;
 }