From 22bd359986b62e38e277b72751f48da7c861446f Mon Sep 17 00:00:00 2001 From: Nicola Fontana Date: Sun, 10 Apr 2011 01:36:33 +0200 Subject: [PATCH] [AdgPath] Removed fillet and chamfer bugs With commit #6184396a0db8733dabe95343c390a06baf9c73b8 the AdgPath object behavior has been modified: instead of setting the point the new implementation was getting them. Reversed to set (using the new APIs) resolved some rendering bugs in fillets and chamfers. --- src/adg/adg-path.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/adg/adg-path.c b/src/adg/adg-path.c index f89eb701..e6adce91 100644 --- a/src/adg/adg-path.c +++ b/src/adg/adg-path.c @@ -1208,11 +1208,11 @@ _adg_do_chamfer(AdgPath *path, AdgPrimitive *current) /* Change the end point of the last primitive */ cpml_primitive_put_pair_at(last, 1. - delta1 / len1, &pair); - cpml_primitive_put_point(last, -1, &pair); + cpml_primitive_set_point(last, -1, &pair); /* Change the start point of the current primitive */ cpml_primitive_put_pair_at(current, delta2 / len2, &pair); - cpml_primitive_put_point(current, 0, &pair); + cpml_primitive_set_point(current, 0, &pair); /* Add the chamfer line */ data->operation.action = ADG_ACTION_NONE; @@ -1274,10 +1274,10 @@ _adg_do_fillet(AdgPath *path, AdgPrimitive *current) g_free(last_dup); /* Change the end point of the last primitive */ - cpml_primitive_put_point(last, -1, &p[0]); + cpml_primitive_set_point(last, -1, &p[0]); /* Change the start point of the current primitive */ - cpml_primitive_put_point(current, 0, &p[2]); + cpml_primitive_set_point(current, 0, &p[2]); /* Add the fillet arc */ data->operation.action = ADG_ACTION_NONE; -- 2.11.4.GIT