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

Pierre Biava pbiava at users.sourceforge.net
Sat May 1 09:59:16 CEST 2010


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

Modified Files:
	balance_estimate_hist.c 
Log Message:
fixes a bug in the bet_historical_div_toggle_clicked function

Index: balance_estimate_hist.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/balance_estimate_hist.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- balance_estimate_hist.c	18 Apr 2010 07:53:06 -0000	1.23
+++ balance_estimate_hist.c	1 May 2010 07:59:13 -0000	1.24
@@ -38,15 +38,16 @@
 #include "./gsb_data_fyear.h"
 #include "./gsb_data_transaction.h"
 #include "./gsb_fyear.h"
-#include "./navigation.h"
+#include "./gsb_real.h"
 #include "./traitement_variables.h"
 #include "./utils_str.h"
+#include "./balance_estimate_data.h"
 #include "./gsb_fyear.h"
 #include "./mouse.h"
-#include "./balance_estimate_data.h"
 #include "./structures.h"
 #include "./include.h"
 #include "./erreur.h"
+#include "./gsb_real.h"
 /*END_INCLUDE*/
 
 /*START_STATIC*/
@@ -246,7 +247,9 @@
         if ( col_edited == FALSE && valeur == FALSE )
             return FALSE;
 
-        valeur = 1 - valeur;
+        if ( renderer )
+            valeur = 1 - valeur;
+
         if ( valeur == 1 )
         {
             //~ printf ("avant - account_nb = %d, div = %d, sub_div = %d\n", account_nb, div, sub_div);



More information about the cvs mailing list