]> granicus.if.org Git - graphviz/commitdiff
Fix formatting
authorerg <devnull@localhost>
Wed, 13 May 2009 20:53:28 +0000 (20:53 +0000)
committererg <devnull@localhost>
Wed, 13 May 2009 20:53:28 +0000 (20:53 +0000)
lib/graph/attribs.c

index 8e223376cf1eb0d55296c64880c06c15f11794e6..97c764d58d69be3ba850f4c4d289cf5f5e1d51dc 100644 (file)
@@ -132,20 +132,20 @@ static void add_edge_attr(Agraph_t * g, Agsym_t * attr, int isnew)
 Agsym_t *agattr(void *obj, char *name, char *value)
 {
     Agsym_t *rv;
-       int isnew = 1;
+    int isnew = 1;
 
     rv = agfindattr(obj, name);
     if (rv) {
        if (strcmp(rv->value, value)) {
-               agstrfree(rv->value);
-               rv->value = agstrdup(value);
-               isnew = 0;
+           agstrfree(rv->value);
+           rv->value = agstrdup(value);
+           isnew = 0;
        }
        else
-               return rv;
+           return rv;
     }
-       else
-               rv = agNEWsym(agdictof(obj), name, value);
+    else
+       rv = agNEWsym(agdictof(obj), name, value);
     if (rv) {
        switch (TAG_OF(obj)) {
        case TAG_GRAPH: