]> granicus.if.org Git - graphviz/commitdiff
Fix mingle edge color output to conform to current syntax.
authorEmden R. Gansner <erg@research.att.com>
Tue, 20 Aug 2013 13:25:37 +0000 (09:25 -0400)
committerEmden R. Gansner <erg@research.att.com>
Tue, 20 Aug 2013 13:25:37 +0000 (09:25 -0400)
lib/mingle/edge_bundling.c

index 8f1447f6886151139272f3fc74a0dbad5172adc8..f992ef2f49f1b49b9b7026f29f5101fc37158836 100644 (file)
@@ -329,9 +329,9 @@ void pedge_export_gv(FILE *fp, int ne, pedge *edges){
        t = edge->wgts[j]/maxwgt;
        /* interpotate between red (t = 1) to blue (t = 0) */
        r = 255*t; g = 0; b = 255*(1-t); b = 255*(1-t);
-       if (j != 0) fprintf(fp,";");
+       if (j != 0) fprintf(fp,":");
        fprint_rgb(fp, r, g, b, 85);
-       fprintf(fp,",%f",len_total/len_total0);
+       if (j < edge->npoints - 2) fprintf(fp,";%f",len/len_total0);
       }
 
     }