[gnumeric] Fix format import from ODF. [#403]



commit c080836ad2d19a5441ab7c663621c7dee42fbfef
Author: Andreas J. Guelzow <aguelzow pyrshep ca>
Date:   Thu Jun 27 14:51:39 2019 -0600

    Fix format import from ODF. [#403]
    
    2019-06-27  Andreas J. Guelzow <aguelzow pyrshep ca>
    
        * openoffice-read.c (oo_date_text_append): quote slash

 NEWS                                 | 3 +++
 plugins/openoffice/ChangeLog         | 4 ++++
 plugins/openoffice/openoffice-read.c | 2 +-
 3 files changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/NEWS b/NEWS
index 5e4765df7..f75cb0ed3 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,8 @@
 Gnumeric 1.12.46
 
+Andreas:
+    * Fix format import from ODF. [#403]
+
 Morten:
        * Fix over-eager guessing of dates in csv.  [#401]
        * Fix Mac build problem.  [#402]
diff --git a/plugins/openoffice/ChangeLog b/plugins/openoffice/ChangeLog
index 5991a66e2..93997bb49 100644
--- a/plugins/openoffice/ChangeLog
+++ b/plugins/openoffice/ChangeLog
@@ -1,3 +1,7 @@
+2019-06-27  Andreas J. Guelzow <aguelzow pyrshep ca>
+
+    * openoffice-read.c (oo_date_text_append): quote slash
+
 2019-05-20  Morten Welinder <terra gnome org>
 
        * Release 1.12.45
diff --git a/plugins/openoffice/openoffice-read.c b/plugins/openoffice/openoffice-read.c
index 6d72f3ad1..29aaa86d9 100644
--- a/plugins/openoffice/openoffice-read.c
+++ b/plugins/openoffice/openoffice-read.c
@@ -5197,7 +5197,7 @@ static void
 oo_date_text_append (OOParseState *state, char const *cnt, int cnt_len)
 {
        if (cnt_len > 0) {
-               if (NULL != strchr (" /-(),:",*cnt)) {
+               if (NULL != strchr (" -(),:",*cnt)) {
                        oo_date_text_append_unquoted (state, *cnt);
                        oo_date_text_append (state, cnt + 1, cnt_len - 1);
                        return;


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