From 63991a44faeb199d5e6eb454d4ebb0ffa772d92c Mon Sep 17 00:00:00 2001 From: ellson Date: Thu, 7 Feb 2008 17:09:46 +0000 Subject: [PATCH] complete penwidth support for nodes and clusters --- lib/common/shapes.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/common/shapes.c b/lib/common/shapes.c index ef1d8172b..e252c41e1 100644 --- a/lib/common/shapes.c +++ b/lib/common/shapes.c @@ -328,11 +328,17 @@ static char **checkStyle(node_t * n, int *flagp) static int stylenode(GVJ_t * job, node_t * n) { - char **pstyle; - int istyle; + char **pstyle, *s; + int istyle, penwidth; if ((pstyle = checkStyle(n, &istyle))) gvrender_set_style(job, pstyle); + + if (N_penwidth && ((s=agxget(n, N_penwidth->index)) && s[0])) { + penwidth = late_double(n, N_penwidth, 1.0, 0.0); + gvrender_set_penwidth(job, penwidth); + } + return istyle; } -- 2.40.0