]> granicus.if.org Git - graphviz/commitdiff
simplify xdot_style with agxbprint
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 6 Sep 2020 17:27:38 +0000 (10:27 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 17 Sep 2020 04:08:23 +0000 (21:08 -0700)
plugin/core/gvrender_core_dot.c

index 8d820c7a9563d3731a3f121f326cc11da9a83125..21638fce2dbf86bef378e345e077ab019b76b9b3 100644 (file)
@@ -200,8 +200,7 @@ static void xdot_style (GVJ_t *job)
        agxbput (&xbuf, "setlinewidth(");
        sprintf (buf, "%.3f", job->obj->penwidth);
        xdot_trim_zeros (buf, 0);
-       agxbput(&xbuf, buf);
-       agxbputc (&xbuf, ')');
+       agxbprint(&xbuf, "%s)", buf);
         xdot_str (job, "S ", agxbuse(&xbuf));
     }