diff options
-rw-r--r-- | e-util/e-util.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/e-util/e-util.c b/e-util/e-util.c index b8fab82b25..b209aa7dde 100644 --- a/e-util/e-util.c +++ b/e-util/e-util.c @@ -858,11 +858,9 @@ e_format_number (gint number) int divider; char *value; char *value_iterator; - int initial_grouping; locality = localeconv(); grouping = locality->grouping; - initial_grouping = *grouping; while (number) { char *group; switch (*grouping) { @@ -871,8 +869,8 @@ e_format_number (gint number) grouping++; case 0: divider = epow10(last_count); - if((!list && (number/divider) > 0) || number > divider) { - group = g_strdup_printf("%0*d", initial_grouping, number % divider); + if (number >= divider) { + group = g_strdup_printf("%0*d", last_count, number % divider); } else { group = g_strdup_printf("%d", number % divider); } |