[gcalctool] Handle ',' as radix point when editing display
- From: Robert Ancell <rancell src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gcalctool] Handle ',' as radix point when editing display
- Date: Tue, 13 Oct 2009 00:53:55 +0000 (UTC)
commit 5f6e205fb1c2f86981d2b74a17da475f4cb5351b
Author: Robert Ancell <robert ancell gmail com>
Date: Tue Oct 13 11:50:54 2009 +1100
Handle ',' as radix point when editing display
ChangeLog | 8 ++++++--
src/mp-convert.c | 2 +-
2 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 7e3f295..245093f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,12 +1,16 @@
-/* $Header: /cvs/gnome/gcalctool/ChangeLog,v 1.467 2006/12/18 03:05:13 richb Exp $
- *
+/*
* Copyright (c) 1987-2008 Sun Microsystems, Inc.
+ * Copyright (c) 2007-2009 Robert Ancell
* All Rights Reserved.
*/
gcalctool change history.
=========================
+2009-10-13 Robert Ancell <robert ancell gmail com>
+
+ * Handle ',' as radix point when editing display
+
2009-10-09 Robert Ancell <robert ancell gmail com>
* Fix inactive random button
diff --git a/src/mp-convert.c b/src/mp-convert.c
index 939a946..13efada 100644
--- a/src/mp-convert.c
+++ b/src/mp-convert.c
@@ -651,7 +651,7 @@ mp_set_from_string(const char *str, MPNumber *z)
mp_add(z, &fraction, z);
}
- if (*c == '.') {
+ if (*c == '.' | *c == ',') {
has_fraction = TRUE;
c++;
} else {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]