Commit b54256fb authored by Ell's avatar Ell

app: avoid CRITICAL when loading XCF with empty gimp-image-grid parasite

parent 8e798e9c
......@@ -335,7 +335,13 @@ gimp_grid_from_parasite (const GimpParasite *parasite)
gimp_grid_parasite_name ()) == 0, NULL);
str = gimp_parasite_data (parasite);
g_return_val_if_fail (str != NULL, NULL);
if (! str)
g_warning ("Empty grid parasite");
return NULL;
grid = g_object_new (GIMP_TYPE_GRID, NULL);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment