gegl r2792 - in trunk: . gegl/property-types



Author: ok
Date: Sat Nov 22 15:57:20 2008
New Revision: 2792
URL: http://svn.gnome.org/viewvc/gegl?rev=2792&view=rev

Log:
* gegl/property-types/gegl-path.c: (gegl_path_remove),
(gegl_path_replace): made -1 mean the last node of the path.


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	Sat Nov 22 15:57:20 2008
@@ -1259,6 +1259,10 @@
   GeglPathList *prev = NULL;
 
   gint count=0;
+
+  if (pos == -1)
+    pos = gegl_path_get_count (vector)-1;
+
   for (iter = priv->path; iter; iter=iter->next)
     {
       if (count == pos)
@@ -1350,7 +1354,7 @@
       prev = iter;
       count ++;
     }
-  if (count==-1)
+  if (pos==-1)
     {
       if (prev)
         copy_data (knot, &prev->d);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]