[goffice] use min_digits from format details
- From: Andreas J. Guelzow <guelzow src gnome org>
- To: svn-commits-list gnome org
- Subject: [goffice] use min_digits from format details
- Date: Tue, 2 Jun 2009 12:49:14 -0400 (EDT)
commit 5fbc5c39e0e50401158c603c9e84cd0b7dd3ce11
Author: Andreas J. Guelzow <aguelzow pyrshep ca>
Date: Tue Jun 2 10:48:48 2009 -0600
use min_digits from format details
2009-06-02 Andreas J. Guelzow <aguelzow pyrshep ca>
* goffice/utils/go-format.c (go_format_output_number_to_odf):
use min_digits from format details
(go_format_output_scientific_number_to_odf): ditto
(go_format_output_currency_to_odf): ditto
---
ChangeLog | 7 +++++++
goffice/utils/go-format.c | 6 +++---
2 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 73c2c7f..7378e2a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2009-06-02 Andreas J. Guelzow <aguelzow pyrshep ca>
+
+ * goffice/utils/go-format.c (go_format_output_number_to_odf):
+ use min_digits from format details
+ (go_format_output_scientific_number_to_odf): ditto
+ (go_format_output_currency_to_odf): ditto
+
2009-06-02 Morten Welinder <terra gnome org>
* goffice/gtk/go-format-sel.c (study_format): Deal with issues the
diff --git a/goffice/utils/go-format.c b/goffice/utils/go-format.c
index e044633..744036b 100644
--- a/goffice/utils/go-format.c
+++ b/goffice/utils/go-format.c
@@ -6060,7 +6060,7 @@ go_format_output_scientific_number_to_odf (GsfXMLOut *xout, GOFormat const *fmt,
gsf_xml_out_start_element (xout, NUMBER "scientific-number");
gsf_xml_out_add_int (xout, NUMBER "decimal-places", dst->num_decimals);
odf_add_bool (xout, NUMBER "grouping", dst->thousands_sep);
- gsf_xml_out_add_int (xout, NUMBER "min-integer-digits", 1);
+ gsf_xml_out_add_int (xout, NUMBER "min-integer-digits", dst->min_digits);
gsf_xml_out_add_int (xout, NUMBER "min-exponent-digits", 2);
gsf_xml_out_end_element (xout); /* </number:scientific-number> */
gsf_xml_out_end_element (xout); /* </number:number-style> */
@@ -6091,7 +6091,7 @@ go_format_output_number_to_odf (GsfXMLOut *xout, GOFormat const *fmt, char const
gsf_xml_out_add_int (xout, NUMBER "decimal-places", dst->num_decimals);
gsf_xml_out_add_int (xout, NUMBER "display-factor", no_neg ? -1 : 1);
odf_add_bool (xout, NUMBER "grouping", dst->thousands_sep);
- gsf_xml_out_add_int (xout, NUMBER "min-integer-digits", 1);
+ gsf_xml_out_add_int (xout, NUMBER "min-integer-digits", dst->min_digits);
gsf_xml_out_end_element (xout); /* </number:number> */
if (dst->family == GO_FORMAT_PERCENTAGE)
gsf_xml_out_simple_element(xout, NUMBER "text", parentheses ? "%)" : "%");
@@ -6129,7 +6129,7 @@ go_format_output_currency_to_odf (GsfXMLOut *xout, GOFormat const *fmt, char con
gsf_xml_out_add_int (xout, NUMBER "decimal-places", dst->num_decimals);
gsf_xml_out_add_int (xout, NUMBER "display-factor", no_neg ? -1 : 1);
odf_add_bool (xout, NUMBER "grouping", dst->thousands_sep);
- gsf_xml_out_add_int (xout, NUMBER "min-integer-digits", 1);
+ gsf_xml_out_add_int (xout, NUMBER "min-integer-digits", dst->min_digits);
gsf_xml_out_end_element (xout); /* </number:number> */
if (!dst->currency->precedes) {
if (dst->currency->has_space)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]