[grisbi-cvs] grisbi/src gsb_file.c,1.35,1.36

Gilles Morel gilles_morel at users.sourceforge.net
Thu Dec 4 20:58:43 CET 2008


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

Modified Files:
	gsb_file.c 
Log Message:
Testing patch for bug#0000408

Index: gsb_file.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_file.c,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -d -r1.35 -r1.36
--- gsb_file.c	23 Nov 2008 09:44:40 -0000	1.35
+++ gsb_file.c	4 Dec 2008 19:58:41 -0000	1.36
@@ -422,18 +422,17 @@
     while ( list_tmp )
     {
 	gint account_number;
-
+	volatile gint value;
+	
 	account_number = gsb_data_account_get_no_account ( list_tmp -> data );
 
 	gsb_data_account_calculate_current_and_marked_balances (account_number);
 
 	/* set the minimum balances to be shown or not */
-	gsb_data_account_set_mini_balance_authorized_message ( account_number,
-							       gsb_real_cmp ( gsb_data_account_get_current_balance (account_number),
-									      gsb_data_account_get_mini_balance_authorized (account_number)) == -1 );
-	gsb_data_account_set_mini_balance_wanted_message ( account_number,
-							   gsb_real_cmp ( gsb_data_account_get_current_balance (account_number),
-									  gsb_data_account_get_mini_balance_wanted (account_number)) == -1 );
+	value = gsb_real_cmp ( gsb_data_account_get_current_balance (account_number), gsb_data_account_get_mini_balance_authorized (account_number)) == -1;
+		gsb_data_account_set_mini_balance_authorized_message ( account_number, value);
+			value = gsb_real_cmp ( gsb_data_account_get_current_balance (account_number), gsb_data_account_get_mini_balance_wanted (account_number)) == -1;
+				gsb_data_account_set_mini_balance_wanted_message ( account_number, value);
 	list_tmp = list_tmp -> next;
     }
 



More information about the cvs mailing list