[gnumeric] ods: read localc extension for engineering format
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] ods: read localc extension for engineering format
- Date: Thu, 1 Sep 2022 00:35:02 +0000 (UTC)
commit 77da4357464c587b9f004ea786488e764378d282
Author: Morten Welinder <terra gnome org>
Date: Wed Aug 31 20:34:09 2022 -0400
ods: read localc extension for engineering format
The file format is deficient, so everyone comes up with their own
extension for this. What great fun that is!
NEWS | 1 +
plugins/openoffice/ChangeLog | 5 +++++
plugins/openoffice/openoffice-read.c | 5 ++++-
3 files changed, 10 insertions(+), 1 deletion(-)
---
diff --git a/NEWS b/NEWS
index ed497e571..7e81922f6 100644
--- a/NEWS
+++ b/NEWS
@@ -11,6 +11,7 @@ Morten:
* Fix sc import problem. [#663]
* Work a little hard at avoiding -0. [#652]
* Fix html import problem. [#669]
+ * Fix reading localc extension for engineering format. [#659]
--------------------------------------------------------------------------
Gnumeric 1.12.52
diff --git a/plugins/openoffice/ChangeLog b/plugins/openoffice/ChangeLog
index 050767f34..510aa3b3f 100644
--- a/plugins/openoffice/ChangeLog
+++ b/plugins/openoffice/ChangeLog
@@ -1,3 +1,8 @@
+2022-08-31 Morten Welinder <terra gnome org>
+
+ * openoffice-read.c (odf_scientific): Read localc-style
+ engineering format.
+
2022-04-18 Morten Welinder <terra gnome org>
* Release 1.12.52
diff --git a/plugins/openoffice/openoffice-read.c b/plugins/openoffice/openoffice-read.c
index e59fb48a5..325787bc5 100644
--- a/plugins/openoffice/openoffice-read.c
+++ b/plugins/openoffice/openoffice-read.c
@@ -5585,7 +5585,10 @@ odf_scientific (GsfXMLIn *xin, xmlChar const **attrs)
;
else if (oo_attr_bool (xin, attrs, OO_GNUM_NS_EXT, "engineering",
&engineering))
- ;
+ ; // engineering format, Gnumeric-style
+ else if (oo_attr_int (xin, attrs, OO_NS_LOCALC_EXT, "exponent-interval",
+ &details->exponent_step))
+ ; // engineering format, Localc-style
else if (oo_attr_bool (xin, attrs, OO_GNUM_NS_EXT, "literal-E",
&use_literal_E));
if (engineering)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]