[grisbi-cvs] grisbi/src gsb_form.c,1.128,1.129

Pierre Biava pbiava at users.sourceforge.net
Thu Jul 23 21:14:53 CEST 2009


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

Modified Files:
	gsb_form.c 
Log Message:
fixed bug 615

Index: gsb_form.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_form.c,v
retrieving revision 1.128
retrieving revision 1.129
diff -u -d -r1.128 -r1.129
--- gsb_form.c	27 Jun 2009 19:17:53 -0000	1.128
+++ gsb_form.c	23 Jul 2009 19:14:51 -0000	1.129
@@ -2951,10 +2951,11 @@
     }
     else
     {
-	const gchar *string;
+	gchar *string;
 	gint contra_transaction_number;
 
-	string = gtk_combofix_get_text ( GTK_COMBOFIX (category_combofix));
+    /* On protège la chaine pendant toute l'opération */
+	string = g_strdup ( gtk_combofix_get_text ( GTK_COMBOFIX ( category_combofix ) ) );
 
 	if ( strcmp ( string,
 		      _("Split of transaction") ))
@@ -3112,6 +3113,7 @@
 	    gsb_data_mix_set_financial_year_number (transaction_number, 0, is_transaction);
 	    gsb_data_mix_set_voucher (transaction_number, NULL, is_transaction);
 	}
+        g_free ( string );
     }
 
     return FALSE;



More information about the cvs mailing list