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

of selected text in on-canvas editor

It is necessary to escape font names containing '&'
This commit is contained in:
Massimo Valentini 2013-04-21 17:47:01 +02:00
parent 804313bbec
commit 65800af41d
1 changed files with 5 additions and 1 deletions

View File

@ -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