[grisbi-cvs] grisbi/src balance_estimate_data.c,1.23,1.24

Pierre Biava pbiava at users.sourceforge.net
Tue May 4 20:13:59 CEST 2010


Update of /cvsroot/grisbi/grisbi/src
In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv29817

Modified Files:
	balance_estimate_data.c 
Log Message:
fixes a bug in data storage for  estimate budgetary

Index: balance_estimate_data.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/balance_estimate_data.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- balance_estimate_data.c	4 May 2010 12:27:52 -0000	1.23
+++ balance_estimate_data.c	4 May 2010 18:13:57 -0000	1.24
@@ -84,7 +84,7 @@
 static gint future_number;
 
 /** the hashtable for account_balance */
-static GHashTable *bet_transfert_list = NULL;
+static GHashTable *bet_transfert_list;
 static gint transfert_number;
 
 /* force la mise à jour des données */
@@ -719,7 +719,11 @@
     gpointer key, value;
     gint index = 0;
 
-    if ( g_hash_table_size ( bet_hist_div_list ) == 0 )
+    if ( g_hash_table_size ( bet_hist_div_list ) == 0
+     &&
+        g_hash_table_size ( bet_future_list ) == 0
+     &&
+        g_hash_table_size ( bet_transfert_list ) == 0 )
         return NULL;
 
     tab = g_ptr_array_new ( );



More information about the cvs mailing list