gegl r2780 - in trunk: . bin
- From: ok svn gnome org
- To: svn-commits-list gnome org
- Subject: gegl r2780 - in trunk: . bin
- Date: Tue, 18 Nov 2008 16:49:16 +0000 (UTC)
Author: ok
Date: Tue Nov 18 16:49:16 2008
New Revision: 2780
URL: http://svn.gnome.org/viewvc/gegl?rev=2780&view=rev
Log:
* bin/gegl-path-spiro.c: (gegl_path_spiro_flatten): make spiro curves
be closed when the initial node is "O".
Modified:
trunk/ChangeLog
trunk/bin/gegl-path-spiro.c
Modified: trunk/bin/gegl-path-spiro.c
==============================================================================
--- trunk/bin/gegl-path-spiro.c (original)
+++ trunk/bin/gegl-path-spiro.c Tue Nov 18 16:49:16 2008
@@ -68,6 +68,7 @@
GeglPathList *iter;
spiro_cp *points;
gboolean is_spiro = TRUE;
+ gboolean closed = FALSE;
gint count;
gint i;
/* first we do a run through the path checking it's length
@@ -99,6 +100,11 @@
}
points = g_new0 (spiro_cp, count);
+
+
+ if (original && original->d.type!='v')
+ closed = TRUE;
+
for (i=0, iter = original; iter; iter=iter->next, i++)
{
points[i].x = iter->d.point[0].x;
@@ -148,7 +154,7 @@
bezcontext.curveto = curveto;
bezcontext.quadto = quadto;
bezcontext.path = NULL;
- SpiroCPsToBezier(points,count, FALSE, (void*)&bezcontext);
+ SpiroCPsToBezier(points,count, closed, (void*)&bezcontext);
g_free (points);
return bezcontext.path;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]