[goffice] use %g rather than %f when creating conditional odf data formats
- From: Andreas J. Guelzow <guelzow src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [goffice] use %g rather than %f when creating conditional odf data formats
- Date: Wed, 18 Nov 2009 07:24:52 +0000 (UTC)
commit 0d88650fb56852d2488c43e5fd27f15511c4e8c7
Author: Andreas J. Guelzow <aguelzow pyrshep ca>
Date: Wed Nov 18 00:23:26 2009 -0700
use %g rather than %f when creating conditional odf data formats
2009-11-17 Andreas J. Guelzow <aguelzow pyrshep ca>
* goffice/utils/go-format.c (go_format_odf_style_map): use %g rather than %f
ChangeLog | 4 ++++
goffice/utils/go-format.c | 12 ++++++------
2 files changed, 10 insertions(+), 6 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 8f6c562..7a57738 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2009-11-17 Andreas J. Guelzow <aguelzow pyrshep ca>
+ * goffice/utils/go-format.c (go_format_odf_style_map): use %g rather than %f
+
+2009-11-17 Andreas J. Guelzow <aguelzow pyrshep ca>
+
* autogen.sh: allow dirs on PATH to have spaces withou causing warning
2009-11-13 Jean Brefort <jean brefort normalesup org>
diff --git a/goffice/utils/go-format.c b/goffice/utils/go-format.c
index 5c8121a..c7a9dc6 100644
--- a/goffice/utils/go-format.c
+++ b/goffice/utils/go-format.c
@@ -5487,24 +5487,24 @@ go_format_odf_style_map (GOFormat const *fmt, int cond_part)
switch (fmt->u.cond.conditions[cond_part].op) {
case GO_FMT_COND_EQ:
- format_string = "value()=%f";
+ format_string = "value()=%g";
break;
case GO_FMT_COND_NE:
- format_string = "value()!=%f";
+ format_string = "value()!=%g";
break;
case GO_FMT_COND_NONTEXT: /* Under certain circumstances this */
/*appears for second of two conditions */
case GO_FMT_COND_LT:
- format_string = "value()<%f";
+ format_string = "value()<%g";
break;
case GO_FMT_COND_LE:
- format_string = "value()<=%f";
+ format_string = "value()<=%g";
break;
case GO_FMT_COND_GT:
- format_string = "value()>%f";
+ format_string = "value()>%g";
break;
case GO_FMT_COND_GE:
- format_string = "value()>=%f";
+ format_string = "value()>=%g";
break;
default:
return NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]