]> granicus.if.org Git - graphviz/commitdiff
Fix incorrect circle sizing reported in bug 1096.
authorerg <devnull@localhost>
Fri, 16 Mar 2007 20:40:11 +0000 (20:40 +0000)
committererg <devnull@localhost>
Fri, 16 Mar 2007 20:40:11 +0000 (20:40 +0000)
plugin/core/gvrender_core_map.c

index 5e04743d7d451c95251c8c60d915afff286f5019..3653d9f3e3e4e91f7a32594e79440f13c8142d54 100644 (file)
@@ -126,7 +126,7 @@ static void map_output_shape (GVJ_t *job, map_shape_t map_shape, pointf * AF, in
         core_fputs(job, " coords=\"");
         switch (map_shape) {
         case MAP_CIRCLE:
-            core_printf(job, "%d,%d,%d", A[0].x, A[0].y, A[1].x);
+            core_printf(job, "%d,%d,%d", A[0].x, A[0].y, A[1].x-A[0].x);
             break;
         case MAP_RECTANGLE:
            /* Y_GOES_DOWN so need UL to LR */