gegl r2786 - in trunk: . gegl/property-types
- From: ok svn gnome org
- To: svn-commits-list gnome org
- Subject: gegl r2786 - in trunk: . gegl/property-types
- Date: Wed, 19 Nov 2008 21:14:41 +0000 (UTC)
Author: ok
Date: Wed Nov 19 21:14:41 2008
New Revision: 2786
URL: http://svn.gnome.org/viewvc/gegl?rev=2786&view=rev
Log:
* gegl/property-types/gegl-path.c: (gegl_path_closest_point): skip '0'
typed nodes when traversing.
Modified:
trunk/ChangeLog
trunk/gegl/property-types/gegl-path.c
Modified: trunk/gegl/property-types/gegl-path.c
==============================================================================
--- trunk/gegl/property-types/gegl-path.c (original)
+++ trunk/gegl/property-types/gegl-path.c Wed Nov 19 21:14:41 2008
@@ -1556,17 +1556,20 @@
while (iter)
{
gdouble dist;
- dist = gegl_path_closest_point (path,
- iter->d.point[0].x,
- iter->d.point[0].y,
- NULL, NULL, NULL);
- *node_pos_before = -2;
- if(dist > closest_val - 2)
+ if (iter->d.type !='0')
{
- *node_pos_before = i-1;
+ dist = gegl_path_closest_point (path,
+ iter->d.point[0].x,
+ iter->d.point[0].y,
+ NULL, NULL, NULL);
+ *node_pos_before = -2;
+ if(dist > closest_val - 2)
+ {
+ *node_pos_before = i-1;
+ }
+ if(dist > closest_val)
+ break;
}
- if(dist > closest_val)
- break;
i++;
iter=iter->next;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]