Commit e97f2510 authored by Ell's avatar Ell

app: avoid CRITICAL when loading XCF with empty symmetry parasites

parent eafefc7d
......@@ -471,7 +471,13 @@ gimp_symmetry_from_parasite (const GimpParasite *parasite,
NULL);
str = gimp_parasite_data (parasite);
g_return_val_if_fail (str != NULL, NULL);
if (! str)
{
g_warning ("Empty symmetry parasite \"%s\"", parasite_name);
return NULL;
}
symmetry = gimp_image_symmetry_new (image, type);
......
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