[gimp/gimp-2-8] Bug 698426: ALL text disappears when changing font ...
- From: Massimo Valentini <mvalentini src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-8] Bug 698426: ALL text disappears when changing font ...
- Date: Sun, 21 Apr 2013 16:01:22 +0000 (UTC)
commit ca520161166fd9f11465eb8c86c46ffb01ba8856
Author: Massimo Valentini <mvalentini src gnome org>
Date: Sun Apr 21 17:47:01 2013 +0200
Bug 698426: ALL text disappears when changing font ...
of selected text in on-canvas editor
It is necessary to escape font names containing '&'
app/widgets/gimptextbuffer-serialize.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/app/widgets/gimptextbuffer-serialize.c b/app/widgets/gimptextbuffer-serialize.c
index 8db37f5..93fce71 100644
--- a/app/widgets/gimptextbuffer-serialize.c
+++ b/app/widgets/gimptextbuffer-serialize.c
@@ -85,8 +85,12 @@ open_tag (GimpTextBuffer *buffer,
{
if (attribute && attribute_value)
{
+ gchar *escaped = g_markup_escape_text (attribute_value, -1);
+
g_string_append_printf (string, "<%s %s=\"%s\">",
- name, attribute, attribute_value);
+ name, attribute, escaped);
+
+ g_free (escaped);
g_free (attribute_value);
}
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]