Commit 65800af4 authored by Massimo Valentini's avatar Massimo Valentini

Bug 698426: ALL text disappears when changing font ...

of selected text in on-canvas editor

It is necessary to escape font names containing '&'
parent 804313bb
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment