app: copy the new GEGL property keys in gimp_param_spec_duplicate()

This commit is contained in:
Michael Natterer 2014-05-16 02:30:41 +02:00
parent ae331bc7ac
commit 43244bd461
1 changed files with 9 additions and 0 deletions

View File

@ -244,5 +244,14 @@ gimp_param_spec_duplicate (GParamSpec *pspec)
g_type_name (G_TYPE_FROM_INSTANCE (pspec)), pspec->name);
}
if (copy)
{
GQuark quark = g_quark_from_static_string ("gegl-property-keys");
GHashTable *keys = g_param_spec_get_qdata (pspec, quark);
if (keys)
g_param_spec_set_qdata (copy, quark, g_hash_table_ref (keys));
}
return copy;
}