From: Emden R. Gansner Date: Mon, 15 Sep 2014 21:05:51 +0000 (-0400) Subject: Comment out bad code related to edge-aligned labels X-Git-Tag: TRAVIS_CI_BUILD_EXPERIMENTAL~159^2~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6f30222b4c6908c2d4dbd9b347fd3991618145c9;p=graphviz Comment out bad code related to edge-aligned labels --- diff --git a/plugin/core/gvrender_core_svg.c b/plugin/core/gvrender_core_svg.c index 85d8247fd..c78ff1018 100644 --- a/plugin/core/gvrender_core_svg.c +++ b/plugin/core/gvrender_core_svg.c @@ -57,7 +57,9 @@ static void svg_bzptarray(GVJ_t * job, pointf * A, int n) char c; c = 'M'; /* first point */ +#if EDGEALIGN if (A[0].x <= A[n-1].x) { +#endif for (i = 0; i < n; i++) { gvprintf(job, "%c%g,%g", c, A[i].x, -A[i].y); if (i == 0) @@ -65,6 +67,7 @@ static void svg_bzptarray(GVJ_t * job, pointf * A, int n) else c = ' '; /* remaining points */ } +#if EDGEALIGN } else { for (i = n-1; i >= 0; i--) { gvprintf(job, "%c%g,%g", c, A[i].x, -A[i].y); @@ -74,6 +77,7 @@ static void svg_bzptarray(GVJ_t * job, pointf * A, int n) c = ' '; /* remaining points */ } } +#endif } static void svg_print_color(GVJ_t * job, gvcolor_t color)