[grisbi-cvs] grisbi/src import.c,1.315,1.316

Pierre Biava pbiava at users.sourceforge.net
Sat Jan 16 16:22:31 CET 2010


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

Modified Files:
	import.c 
Log Message:
fixed bug 865

Index: import.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/import.c,v
retrieving revision 1.315
retrieving revision 1.316
diff -u -d -r1.315 -r1.316
--- import.c	11 Jan 2010 19:46:35 -0000	1.315
+++ import.c	16 Jan 2010 15:22:27 -0000	1.316
@@ -2857,8 +2857,13 @@
 		{
 		    /* on met le no de compte et la devise de l'opération si plus tard on l'enregistre */
 
-		    ope_import -> devise = gsb_currency_get_currency_from_combobox (
-                                    imported_account -> bouton_devise);
+            if (imported_account -> bouton_devise)
+                ope_import -> devise = gsb_currency_get_currency_from_combobox (
+                            imported_account -> bouton_devise);
+            else
+                ope_import -> devise = gsb_data_currency_get_number_by_code_iso4217 (
+                            imported_account -> devise);
+
 		    liste_opes_import_celibataires = g_slist_append ( liste_opes_import_celibataires,
                                     ope_import );
 		}



More information about the cvs mailing list