Incorrect insertion of datamodel to the list

View: New views
1 Messages — Rating Filter:   Alert me  

Incorrect insertion of datamodel to the list

by Pedro J. Ruiz Lopez-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I think I have found a little issue on ferret_project_create_datamodel when
adding a new datamodel to a non empty list on position equal to the lenght
of the list.

Here is the patch.


===File ~/CVS/parchecito.patch==============================
--- ferret/src/ferret_project.c 2006-08-24 23:36:54.000000000 +0200
+++ ferret_testing/src/ferret_project.c 2006-11-01 12:39:44.000000000 +0100
@@ -375,7 +375,7 @@
     }
   else
     {
-      if (index >= ferret_project_datamodel_get_count (project))
+      if (index > ferret_project_datamodel_get_count (project))
  {
   // Append the datamodel
   traveller = project->datamodels;
============================================================


_______________________________________________
Bug-ferret mailing list
Bug-ferret@...
http://lists.gnu.org/mailman/listinfo/bug-ferret