[goffice] Fix strict number style export to ODF. [#726237]



commit 3ac45963c39b89ac0840eefd75831bb1c4fa07fd
Author: Andreas J. Guelzow <aguelzow pyrshep ca>
Date:   Fri Mar 14 17:34:56 2014 -0600

    Fix strict number style export to ODF. [#726237]
    
    2014-03-14 Andreas J. Guelzow <aguelzow pyrshep ca>
    
        * goffice/utils/go-format.c (go_format_output_number_to_odf): write
        any started number.

 ChangeLog                 |    5 +++++
 NEWS                      |    1 +
 goffice/utils/go-format.c |    3 ++-
 3 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 2647c90..6259f36 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-03-14 Andreas J. Guelzow <aguelzow pyrshep ca>
+
+       * goffice/utils/go-format.c (go_format_output_number_to_odf): write
+       any started number.
+
 2014-03-12  Morten Welinder  <terra gnome org>
 
        * goffice/app/go-conf-gsettings.c (go_conf_load_str_list): Don't
diff --git a/NEWS b/NEWS
index 13389df..cfe4624 100644
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,7 @@ goffice 0.10.13:
 Andreas:
        * Write invisible characters in ODF number style export. [part of #725852]
        * Fix writing of scientific number format to ODF. [part of #725852]
+       * Fix strict number style export to ODF. [#726237]
 
 Jean:
        * Ensure that the lasem plugin builds with lasem-0.4.1. [#725693]
diff --git a/goffice/utils/go-format.c b/goffice/utils/go-format.c
index a4258a3..2e0d694 100644
--- a/goffice/utils/go-format.c
+++ b/goffice/utils/go-format.c
@@ -8220,8 +8220,9 @@ go_format_output_number_to_odf (GsfXMLOut *xout, GOFormat const *fmt,
                                        gsf_xml_out_end_element (xout); /* </gnm:invisible> */
                                        g_free (text);
                                } else {
+                                       ODF_WRITE_NUMBER;
                                        ODF_OPEN_STRING;
-                                       g_string_append_len (accum, token + 1, len);
+                                       g_string_append_c (accum, ' ');
                                }
                        }
                        break;


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