[gnumeric] ods: fix strict-compliance E-notation problem.



commit ff4ae7d26b3272b343acf5f062cbdf83d008a652
Author: Morten Welinder <terra gnome org>
Date:   Sun Sep 4 08:30:35 2022 -0400

    ods: fix strict-compliance E-notation problem.

 NEWS                                 | 1 +
 plugins/openoffice/ChangeLog         | 5 +++++
 plugins/openoffice/openoffice-read.c | 2 +-
 3 files changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/NEWS b/NEWS
index 5aa5ad308..c2f36d946 100644
--- a/NEWS
+++ b/NEWS
@@ -12,6 +12,7 @@ Morten:
        * Work a little hard at avoiding -0.  [#652]
        * Fix html import problem.  [#669]
        * Fix reading localc extension for engineering format.  [#659]
+       * Fix strict-conformance ods problem with E-notation.  [#672]
 
 --------------------------------------------------------------------------
 Gnumeric 1.12.52
diff --git a/plugins/openoffice/ChangeLog b/plugins/openoffice/ChangeLog
index 510aa3b3f..8fe28d6d3 100644
--- a/plugins/openoffice/ChangeLog
+++ b/plugins/openoffice/ChangeLog
@@ -1,3 +1,8 @@
+2022-09-04  Morten Welinder  <terra gnome org>
+
+       * openoffice-read.c (odf_scientific): literal-E needs to default
+       to TRUE so reading strict conformance files gets it.
+
 2022-08-31  Morten Welinder  <terra gnome org>
 
        * openoffice-read.c (odf_scientific): Read localc-style
diff --git a/plugins/openoffice/openoffice-read.c b/plugins/openoffice/openoffice-read.c
index 325787bc5..f0d64e60c 100644
--- a/plugins/openoffice/openoffice-read.c
+++ b/plugins/openoffice/openoffice-read.c
@@ -5562,7 +5562,7 @@ odf_scientific (GsfXMLIn *xin, xmlChar const **attrs)
        OOParseState *state = (OOParseState *)xin->user_state;
        GOFormatDetails *details;
        gboolean engineering = FALSE;
-       gboolean use_literal_E = FALSE;
+       gboolean use_literal_E = TRUE;
 
        if (state->cur_format.accum == NULL)
                return;


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