File 190.patch of Package transfig

commit 2bd6c0b210916d0d3ca81f304535b5af0849aa93
Author: Thomas Loimer <thomas.loimer@tuwien.ac.at>
Date:   Tue Apr 8 22:45:57 2025 +0200

    ge output: correct spline computation, ticket #190

---
 fig2dev/dev/genge.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

--- fig2dev/dev/genge.c
+++ fig2dev/dev/genge.c	2025-05-16 08:15:58.678040763 +0000
@@ -229,8 +229,6 @@ genge_itp_spline(F_spline *s)
 	int		 xmin, ymin;
 
 	a = s->controls;
-
-	a = s->controls;
 	p = s->points;
 	/* go through the points to find the last two */
 	for (q = p->next; q != NULL; p = q, q = q->next) {
@@ -238,6 +236,7 @@ genge_itp_spline(F_spline *s)
 	    a = b;
 	}
 
+	a = s->controls;
 	p = s->points;
 	fprintf(tfp, "n %d %d m\n", p->x, p->y);
 	xmin = 999999;
openSUSE Build Service is sponsored by