]> granicus.if.org Git - graphviz/commitdiff
fix incorrect macro reference in PIC plugin
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 15 Mar 2021 00:42:00 +0000 (17:42 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 21 Mar 2021 03:52:35 +0000 (20:52 -0700)
This looks once again copied from the core PIC implementation
(lib/common/picgen.c) without accounting for the fact the core implementation’s
attrs macros are generated dynamically. The plugin generates a single macro,
attrs0, which it was incorrectly calling as attrs1. Related to #131.

plugin/core/gvrender_core_pic.c

index 9bf5628b43502d5986ec4b046a9c6042d0446ec1..98a4a440312142378afcb134ef0cd937a6c7bc2b 100644 (file)
@@ -380,7 +380,7 @@ static void pic_ellipse(GVJ_t * job, pointf * A, int filled)
     /* A[] contains 2 points: the center and corner. */
 
     gvprintf(job,
-               "ellipse attrs%d %swid %.5f ht %.5f at (%.5f,%.5f);\n", 1,
+               "ellipse attrs0 %swid %.5f ht %.5f at (%.5f,%.5f);\n",
                filled ? "fill " : "",
                PS2INCH(2*(A[1].x - A[0].x)),
                PS2INCH(2*(A[1].y - A[0].y)),