[gcalctool] Add more than one thousands separarator per number
- From: Robin Sonefors <rsonefors src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gcalctool] Add more than one thousands separarator per number
- Date: Tue, 19 Oct 2010 08:14:04 +0000 (UTC)
commit 076e15f7c8cab2c914b22cef18d874953910d7b6
Author: Robin Sonefors <ozamosi flukkost nu>
Date: Tue Oct 19 10:12:24 2010 +0200
Add more than one thousands separarator per number
src/mp-serializer.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/mp-serializer.c b/src/mp-serializer.c
index 1b9db1e..13d0234 100644
--- a/src/mp-serializer.c
+++ b/src/mp-serializer.c
@@ -103,8 +103,10 @@ mp_cast_to_string_real(MpSerializer *serializer, const MPNumber *x, int base, bo
g_string_prepend_c(string, d < 16 ? digits[d] : '?');
i++;
- if (serializer->priv->show_tsep && i == serializer->priv->tsep_count)
+ if (serializer->priv->show_tsep && i == serializer->priv->tsep_count) {
g_string_prepend(string, serializer->priv->tsep);
+ i = 0;
+ }
mp_set_from_mp(&t, &temp);
} while (!mp_is_zero(&temp));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]