[gnumeric] ods: fix import fix in previous commit.



commit 521029a6d8b4715d0173a8a83e7308dbd07ef8cd
Author: Morten Welinder <terra gnome org>
Date:   Thu Oct 31 19:30:10 2019 -0400

    ods: fix import fix in previous commit.

 plugins/openoffice/ChangeLog         | 5 +++++
 plugins/openoffice/openoffice-read.c | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/plugins/openoffice/ChangeLog b/plugins/openoffice/ChangeLog
index 1469a0fe5..76446956d 100644
--- a/plugins/openoffice/ChangeLog
+++ b/plugins/openoffice/ChangeLog
@@ -1,3 +1,8 @@
+2019-10-31  Morten Welinder  <terra gnome org>
+
+       * openoffice-read.c (odf_number_color): Previous fix was a bit too
+       aggressive.  Caught by "t8010 --corpus /amath/".
+
 2019-07-02  Morten Welinder  <terra gnome org>
 
        * openoffice-read.c (oo_format_text_append): Avoid relying on tail
diff --git a/plugins/openoffice/openoffice-read.c b/plugins/openoffice/openoffice-read.c
index 2942b50b3..6849566e2 100644
--- a/plugins/openoffice/openoffice-read.c
+++ b/plugins/openoffice/openoffice-read.c
@@ -5615,7 +5615,7 @@ odf_number_color (GsfXMLIn *xin, xmlChar const **attrs)
                                GOColor col = GO_COLOR_FROM_RGB (r, g, b);
                                int i = go_format_palette_index_from_color (col);
                                char *color = go_format_palette_name_of_index (i);
-                               oo_format_text_append_unquoted  (state, "[", 1);
+                               g_string_append_c (state->cur_format.accum, '[');
                                g_string_append (state->cur_format.accum, color);
                                g_string_append_c (state->cur_format.accum, ']');
                                g_free (color);


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