From 04f67932b927b62e6706a25e74241496410cf76b Mon Sep 17 00:00:00 2001 From: erg Date: Wed, 20 Jul 2011 21:10:50 +0000 Subject: [PATCH] Modify the round_corner function so that it draws a boundary only if penc != NULL --- lib/common/shapes.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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: -- 2.40.0