[gcalctool] Only auto-strip thousand separators if in a number
- From: Robin Sonefors <rsonefors src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gcalctool] Only auto-strip thousand separators if in a number
- Date: Sat, 15 Jan 2011 17:03:16 +0000 (UTC)
commit 840020d94df93cf2f01229ca0c79e0ece8f37174
Author: Robin Sonefors <ozamosi flukkost nu>
Date: Sat Jan 15 16:42:37 2011 +0100
Only auto-strip thousand separators if in a number
Closes bug #633174
src/math-equation.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/math-equation.c b/src/math-equation.c
index 2b87989..252d4c7 100644
--- a/src/math-equation.c
+++ b/src/math-equation.c
@@ -266,7 +266,7 @@ reformat_separators(MathEquation *equation)
}
else if (c == mp_serializer_get_thousands_separator(equation->priv->serializer)) {
/* Didn't expect thousands separator - delete it */
- if (!expect_tsep) {
+ if (!expect_tsep && in_number) {
GtkTextIter start, end;
gtk_text_buffer_get_iter_at_offset(GTK_TEXT_BUFFER(equation), &start, offset);
gtk_text_buffer_get_iter_at_offset(GTK_TEXT_BUFFER(equation), &end, offset + 1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]