From: erg Date: Wed, 20 Jul 2011 21:10:50 +0000 (+0000) Subject: Modify the round_corner function so that it draws a boundary only if penc != NULL X-Git-Tag: LAST_LIBGRAPH~32^2~709 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=04f67932b927b62e6706a25e74241496410cf76b;p=graphviz Modify the round_corner function so that it draws a boundary only if penc != NULL --- diff --git a/lib/common/shapes.c b/lib/common/shapes.c index c5c5a37e2..260c7ca05 100644 --- a/lib/common/shapes.c +++ b/lib/common/shapes.c @@ -441,11 +441,12 @@ void round_corners(GVJ_t * job, char *fillc, char *penc, pointf * AF, TRUE); } } - gvrender_set_pencolor(job, penc); - for (seg = 0; seg < sides; seg++) { - gvrender_polyline(job, B + 4 * seg + 1, 2); - gvrender_beziercurve(job, B + 4 * seg + 2, 4, FALSE, FALSE, - FALSE); + if (penc) { + gvrender_set_pencolor(job, penc); + for (seg = 0; seg < sides; seg++) { + gvrender_polyline(job, B + 4 * seg + 1, 2); + gvrender_beziercurve(job, B + 4 * seg + 2, 4, FALSE, FALSE, FALSE); + } } break; case DIAGONALS: