From: erg Date: Mon, 19 Jul 2010 20:26:42 +0000 (+0000) Subject: Allow optional number with last color segment X-Git-Tag: LAST_LIBGRAPH~32^2~1256 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ccfb0c006c4678f4a1038053363b73e04d08f83a;p=graphviz Allow optional number with last color segment --- diff --git a/lib/common/emit.c b/lib/common/emit.c index c2e6287ed..d869f5e20 100644 --- a/lib/common/emit.c +++ b/lib/common/emit.c @@ -1509,6 +1509,9 @@ parseSegs (char* clrs, int nseg) for (cnum = 0, color = strtok(colors, ":"); color; cnum++, color = strtok(0, ":")) { if (cnum == nseg-1) { + char* p = strchr (color, ','); + if (p) + *p = '\0'; segs[cnum].color = color; segs[cnum].t = 1.0; }