Commit a4ccfcee authored by Roman Joost's avatar Roman Joost
Browse files

Default XMP_TYPE_LANG_ALT to "x-default" according to spec.

To prevent a crash of the meta-data plug-in during export, the encoding
process now falls back to x-default for XMP_TYPE_LANG_ALT properties.
parent 064c3f66
......@@ -153,13 +153,10 @@ gen_property (GString *buffer,
case XMP_TYPE_LANG_ALT:
g_string_append_printf (buffer, " <%s:%s>\n <rdf:Alt>\n",
schema->prefix, property->name);
for (i = 0; value_array[i] != NULL; i += 2)
{
gen_element (buffer, 4,
"rdf", "li", value_array[i + 1],
"xml:lang", value_array[i],
NULL);
}
gen_element (buffer, 4,
"rdf", "li", value_array[0],
"xml:lang", "x-default",
NULL);
g_string_append_printf (buffer, " </rdf:Alt>\n </%s:%s>\n",
schema->prefix, property->name);
break;
......
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