From e7d4dfacb0fb55b9e959dff879657551ebede1eb Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sun, 14 Mar 2021 17:42:00 -0700 Subject: [PATCH] fix incorrect macro reference in PIC plugin MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/core/gvrender_core_pic.c b/plugin/core/gvrender_core_pic.c index 9bf5628b4..98a4a4403 100644 --- a/plugin/core/gvrender_core_pic.c +++ b/plugin/core/gvrender_core_pic.c @@ -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)), -- 2.40.0