[grisbi-cvs] grisbi/src transaction_list.c,1.38,1.39

Cedric Auger cedric_grisbi at users.sourceforge.net
Sun Jun 7 22:58:23 CEST 2009


Update of /cvsroot/grisbi/grisbi/src
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv20357/src

Modified Files:
	transaction_list.c 
Log Message:
fix children update bug

Index: transaction_list.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/transaction_list.c,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -d -r1.38 -r1.39
--- transaction_list.c	21 May 2009 21:58:55 -0000	1.38
+++ transaction_list.c	7 Jun 2009 20:58:21 -0000	1.39
@@ -61,7 +61,7 @@
 /*START_STATIC*/
 static  void transaction_list_append_child ( gint transaction_number );
 static  CustomRecord *transaction_list_create_record ( gint transaction_number,
-                        gint line_in_transaction );
+						       gint line_in_transaction );
 static gint transaction_list_get_last_line ( gint nb_rows );
 static  gboolean transaction_list_update_child ( CustomRecord *child_record );
 static  gboolean transaction_list_update_white_child ( CustomRecord *white_record );
@@ -101,7 +101,7 @@
 
     custom_list = custom_list_new ();
[...2153 lines suppressed...]
     {
-    if (record -> transaction_records[i-1] -> filtered_pos != -1)
-    {
-        path = gtk_tree_path_new ();
-        gtk_tree_path_append_index(path, record -> transaction_records[i-1] -> filtered_pos);
-        gtk_tree_model_row_deleted (GTK_TREE_MODEL(custom_list), path);
-        gtk_tree_path_free(path);
-    }
-    g_free (record -> transaction_records[i-1]);
+	if (record -> transaction_records[i-1] -> filtered_pos != -1)
+	{
+	    path = gtk_tree_path_new ();
+	    gtk_tree_path_append_index(path, record -> transaction_records[i-1] -> filtered_pos);
+	    gtk_tree_model_row_deleted (GTK_TREE_MODEL(custom_list), path);
+	    gtk_tree_path_free(path);
+	}
+	g_free (record -> transaction_records[i-1]);
     }
 
     return TRUE;



More information about the cvs mailing list