From: erg Date: Mon, 31 Jan 2011 20:20:39 +0000 (+0000) Subject: The use of commas should only be done in client-map maps. Restore previous code X-Git-Tag: LAST_LIBGRAPH~32^2~1079 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b54298333579ca76bb5f3fb8ef18237138bf96a7;p=graphviz The use of commas should only be done in client-map maps. Restore previous code for server-side maps. --- diff --git a/plugin/core/gvrender_core_map.c b/plugin/core/gvrender_core_map.c index fa0bdfa16..7f66b7994 100644 --- a/plugin/core/gvrender_core_map.c +++ b/plugin/core/gvrender_core_map.c @@ -48,7 +48,7 @@ static void map_output_shape (GVJ_t *job, map_shape_t map_shape, pointf * AF, in switch (map_shape) { case MAP_RECTANGLE: /* Y_GOES_DOWN so need UL to LR */ - gvprintf(job, "rect %s %d,%d,%d,%d\n", url, + gvprintf(job, "rect %s %d,%d %d,%d\n", url, A[0].x, A[1].y, A[1].x, A[0].y); break; case MAP_CIRCLE: @@ -57,9 +57,8 @@ static void map_output_shape (GVJ_t *job, map_shape_t map_shape, pointf * AF, in break; case MAP_POLYGON: gvprintf(job, "poly %s", url); - gvprintf(job, " %d,%d", A[0].x, A[0].y); - for (i = 1; i < nump; i++) - gvprintf(job, ",%d,%d", A[i].x, A[i].y); + for (i = 0; i < nump; i++) + gvprintf(job, " %d,%d", A[i].x, A[i].y); gvputs(job, "\n"); break; default: