From 9cc5c7430739d247afd83f27f6f9af4d53e2ab39 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sun, 6 Sep 2020 09:31:13 -0700 Subject: [PATCH] simplify addEdgeLabelGraphics with agxbprint --- cmd/tools/gmlparse.y | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cmd/tools/gmlparse.y b/cmd/tools/gmlparse.y index e8d012f2a..a3f02c1ca 100644 --- a/cmd/tools/gmlparse.y +++ b/cmd/tools/gmlparse.y @@ -534,9 +534,7 @@ addEdgeLabelGraphics (Agedge_t* ep, Dt_t* alist, agxbuf* xb, agxbuf* unk) } } - agxbput (xb, x); - agxbputc (xb, ','); - agxbput (xb, y); + agxbprint (xb, "%s,%s", x, y); agsafeset (ep, "lp", agxbuse (xb), ""); if (cnt) { -- 2.40.0