[gcalctool/gnome-3-4] Stop entering thousands seperators, when using a base other than 10.



commit 5d529f2d6f15568093e5506078182f27acb5861b
Author: Christopher Baines <cbaines8 gmail com>
Date:   Fri Mar 30 10:20:46 2012 +0100

    Stop entering thousands seperators, when using a base other than 10.

 src/math-equation.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/math-equation.c b/src/math-equation.c
index 6681ac1..a16d031 100644
--- a/src/math-equation.c
+++ b/src/math-equation.c
@@ -223,7 +223,8 @@ reformat_separators(MathEquation *equation)
         /* See what digit this character is */
         c = g_utf8_get_char(read_iter);
 
-        expect_tsep = mp_serializer_get_show_thousands_separators(equation->priv->serializer) &&
+        expect_tsep = math_equation_get_base(equation) == 10 &&
+                      mp_serializer_get_show_thousands_separators(equation->priv->serializer) &&
                       in_number && !in_radix && !last_is_tsep &&
                       digit_offset > 0 && digit_offset % mp_serializer_get_thousands_separator_count(equation->priv->serializer) == 0;
         last_is_tsep = FALSE;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]