gnucash maint: Bug 721196 - Fixed for locales where decimal point is a comma.

Mike Evans mikee at code.gnucash.org
Sun Jan 11 10:25:18 EST 2015


Updated	 via  https://github.com/Gnucash/gnucash/commit/403fdd30 (commit)
	from  https://github.com/Gnucash/gnucash/commit/16a8ff53 (commit)



commit 403fdd30f06caa8c9abf71b8aadb0d0e03d5a0df
Author: Mike Evans <mikee at saxicola.co.uk>
Date:   Sun Jan 11 15:47:39 2015 +0000

    Bug 721196 - Fixed for locales where decimal point is a comma.

diff --git a/src/import-export/csv-imp/gnc-csv-model.c b/src/import-export/csv-imp/gnc-csv-model.c
index db2c184..b892b55 100644
--- a/src/import-export/csv-imp/gnc-csv-model.c
+++ b/src/import-export/csv-imp/gnc-csv-model.c
@@ -664,11 +664,11 @@ static gboolean trans_property_set (TransProperty* prop, char* str)
     case GNC_CSV_DEPOSIT:
     case GNC_CSV_WITHDRAWAL:
         str_dupe = g_strdup (str); /* First, we make a copy so we can't mess up real data. */
-        /* If a cell is empty make its value = 0.0 */
+        /* If a cell is empty make its value = "0" */
         if (strcmp (str_dupe, "") == 0)
         { 
             g_free (str_dupe);
-            str_dupe = g_strdup ("0.0");
+            str_dupe = g_strdup ("0");
         }
         /* Go through str_dupe looking for currency symbols. */
         for (possible_currency_symbol = str_dupe; *possible_currency_symbol;



Summary of changes:
 src/import-export/csv-imp/gnc-csv-model.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)



More information about the gnucash-changes mailing list