]> granicus.if.org Git - graphviz/commitdiff
Fix Issue #0002522: Rendering a clustered digraph twice produces different result...
authorCarlos Sánchez de La Lama <csanchezdll@gmail.com>
Wed, 4 Mar 2015 10:44:40 +0000 (11:44 +0100)
committerCarlos Sánchez de La Lama <csanchezdll@gmail.com>
Wed, 4 Mar 2015 10:44:40 +0000 (11:44 +0100)
plugin/core/gvrender_core_tk.c

index 66dab5a0dcaa582bdb60d877609de959108239de..446217846e4a91c06308fc575ff73531ef0de36f 100644 (file)
@@ -137,6 +137,8 @@ static void tkgen_begin_job(GVJ_t * job)
     gvputs(job, ")\n");
 }
 
+static int first_periphery;
+
 static void tkgen_begin_graph(GVJ_t * job)
 {
     obj_state_t *obj = job->obj;
@@ -147,9 +149,9 @@ static void tkgen_begin_graph(GVJ_t * job)
        gvputs(job, tkgen_string(agnameof(obj->u.g)));
     }
     gvprintf(job, " Pages: %d\n", job->pagesArraySize.x * job->pagesArraySize.y);
-}
 
-static int first_periphery;
+    first_periphery = 0;
+}
 
 static void tkgen_begin_node(GVJ_t * job)
 {