[goffice] Fix saving of color map names. [#735298]



commit db0f1cc7bd531f6186da264c7f9624a1773d4498
Author: Andreas J. Guelzow <aguelzow pyrshep ca>
Date:   Wed Aug 27 20:28:54 2014 -0600

    Fix saving of color map names. [#735298]
    
    2014-08-27 Andreas J. Guelzow <aguelzow pyrshep ca>
    
        * goffice/graph/gog-axis-color-map.c (save_name_cb): don't skip
        encoding on user entered names

 ChangeLog                          |    5 +++++
 NEWS                               |    3 +++
 goffice/graph/gog-axis-color-map.c |    2 +-
 3 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index a8a93c2..73cac13 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-08-27 Andreas J. Guelzow <aguelzow pyrshep ca>
+
+       * goffice/graph/gog-axis-color-map.c (save_name_cb): don't skip
+       encoding on user entered names
+
 2014-08-19  Jean Brefort  <jean brefort normalesup org>
 
        * goffice/graph/gog-axis-color-map.c (gog_axis_color_map_save): better
diff --git a/NEWS b/NEWS
index ed41452..ffe7238 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,8 @@
 goffice 0.10.18:
 
+Andreas:
+       * Fix saving of color map names. [#735298]
+
 Jean:
        * Fix grid line theme support. [#733403]
        * Fix default ticks position.
diff --git a/goffice/graph/gog-axis-color-map.c b/goffice/graph/gog-axis-color-map.c
index d27cb57..3003b44 100644
--- a/goffice/graph/gog-axis-color-map.c
+++ b/goffice/graph/gog-axis-color-map.c
@@ -147,7 +147,7 @@ save_name_cb (char const *lang, char const *name, GsfXMLOut *output)
        gsf_xml_out_start_element (output, "name");
        if (strcmp (lang, "C"))
                gsf_xml_out_add_cstr_unchecked (output, "xml:lang", lang);
-       gsf_xml_out_add_cstr_unchecked (output, NULL, name);
+       gsf_xml_out_add_cstr (output, NULL, name);
        gsf_xml_out_end_element (output);
 }
 


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