set construct_param->foo, not construct_param*s*->foo, so we don't set the

2004-08-31  Michael Natterer  <mitch@gimp.org>

	* app/config/gimpconfig.c (gimp_config_iface_duplicate): set
	construct_param->foo, not construct_param*s*->foo, so we don't set
	the first construct param again and crash.
This commit is contained in:
Michael Natterer
2004-08-31 13:16:08 +00:00
committed by Michael Natterer
parent e64450b3c1
commit 6965b0b881
3 changed files with 10 additions and 4 deletions

View File

@ -1,3 +1,9 @@
2004-08-31 Michael Natterer <mitch@gimp.org>
* app/config/gimpconfig.c (gimp_config_iface_duplicate): set
construct_param->foo, not construct_param*s*->foo, so we don't set
the first construct param again and crash.
2004-08-31 Michael Natterer <mitch@gimp.org>
* plug-ins/common/cubism.c: added "..." to the progress text.

View File

@ -150,9 +150,9 @@ gimp_config_iface_duplicate (GimpConfig *config)
construct_param = &construct_params[n_construct_params++];
construct_params->name = prop_spec->name;
construct_param->name = prop_spec->name;
g_value_init (&construct_params->value, prop_spec->value_type);
g_value_init (&construct_param->value, prop_spec->value_type);
g_object_get_property (G_OBJECT (config), prop_spec->name,
&construct_param->value);
}

View File

@ -150,9 +150,9 @@ gimp_config_iface_duplicate (GimpConfig *config)
construct_param = &construct_params[n_construct_params++];
construct_params->name = prop_spec->name;
construct_param->name = prop_spec->name;
g_value_init (&construct_params->value, prop_spec->value_type);
g_value_init (&construct_param->value, prop_spec->value_type);
g_object_get_property (G_OBJECT (config), prop_spec->name,
&construct_param->value);
}