[goffice] Fix writing of scientific number format to ODF. [part of #725852]



commit 67717145396b76e85659fb0183d244bf8cbbabac
Author: Andreas J. Guelzow <aguelzow pyrshep ca>
Date:   Thu Mar 6 23:49:53 2014 -0700

    Fix writing of scientific number format to ODF. [part of #725852]
    
    2014-03-06 Andreas J. Guelzow <aguelzow pyrshep ca>
    
        * goffice/utils/go-format.c (go_format_output_scientific_number_to_odf):
        don't skip

 ChangeLog                 |    5 +++++
 NEWS                      |    3 ++-
 goffice/utils/go-format.c |    2 +-
 3 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 47e0e5e..8800899 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2014-03-06 Andreas J. Guelzow <aguelzow pyrshep ca>
 
+       * goffice/utils/go-format.c (go_format_output_scientific_number_to_odf):
+       don't skip
+
+2014-03-06 Andreas J. Guelzow <aguelzow pyrshep ca>
+
        * goffice/utils/go-format.c (go_format_output_number_to_odf): write
        invisible characters; add argument
        (go_format_output_to_odf): adjust call to go_format_output_number_to_odf
diff --git a/NEWS b/NEWS
index cc14ec0..7528cca 100644
--- a/NEWS
+++ b/NEWS
@@ -1,7 +1,8 @@
 goffice 0.10.13:
 
 Andreas:
-       * Write invisible characters in ODF number style export. [#725852]
+       * Write invisible characters in ODF number style export. [part of #725852]
+       * Fix writing of scientific number format to ODF. [part of #725852]
 
 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 20f1280..44de028 100644
--- a/goffice/utils/go-format.c
+++ b/goffice/utils/go-format.c
@@ -8529,7 +8529,7 @@ go_format_output_scientific_number_to_odf (GsfXMLOut *xout, GOFormat const *fmt,
                                forced_exponent_sign = TRUE;
                                xl++;
                        }
-                       if (*xl++ == '-')
+                       if (*xl == '-')
                                xl++;
                        while (*xl == '0') {
                                xl++;


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