Commit ed03d6da authored by Michael Natterer's avatar Michael Natterer 😴

operation: allow a NULL value in gegl_param_spec_set_property_key()

so values can be unset.
parent 40da695e
Pipeline #189735 passed with stages
in 9 minutes and 49 seconds
......@@ -63,7 +63,11 @@ gegl_param_spec_set_property_key (GParamSpec *pspec,
{
GHashTable *ht;
ht = gegl_param_spec_get_property_key_ht (pspec, TRUE);
g_hash_table_insert (ht, g_strdup (key_name), g_strdup (value));
if (value)
g_hash_table_insert (ht, g_strdup (key_name), g_strdup (value));
else
g_hash_table_remove (ht, key_name);
}
static GHashTable *
......
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