]> granicus.if.org Git - graphviz/commitdiff
complete penwidth support for nodes and clusters
authorellson <devnull@localhost>
Thu, 7 Feb 2008 17:09:46 +0000 (17:09 +0000)
committerellson <devnull@localhost>
Thu, 7 Feb 2008 17:09:46 +0000 (17:09 +0000)
lib/common/shapes.c

index ef1d8172bae73a129e05375a6182a11767335642..e252c41e1daeff384a67ae5a49e71dd6a274d5e1 100644 (file)
@@ -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;
 }