[gnumeric] ods: default with exponents with forced sign for scientific format



commit 2de3ad95d8351010c08839999cb610cd7005eac7
Author: Morten Welinder <terra gnome org>
Date:   Sun Sep 4 18:11:58 2022 -0400

    ods: default with exponents with forced sign for scientific format
    
    ods-strict doesn't have a way to specify whether the sign is forced,
    but it appears that the intent was to always have it forced.

 plugins/openoffice/openoffice-read.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/plugins/openoffice/openoffice-read.c b/plugins/openoffice/openoffice-read.c
index f0d64e60c..c4cd466f0 100644
--- a/plugins/openoffice/openoffice-read.c
+++ b/plugins/openoffice/openoffice-read.c
@@ -5568,6 +5568,7 @@ odf_scientific (GsfXMLIn *xin, xmlChar const **attrs)
                return;
 
        details = go_format_details_new (GO_FORMAT_SCIENTIFIC);
+       details->exponent_sign_forced = TRUE;
 
        for (; attrs != NULL && attrs[0] && attrs[1] ; attrs += 2)
                if (oo_attr_bool (xin, attrs, OO_NS_NUMBER, "grouping", &details->thousands_sep)) {}


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