Commit 6781439f authored by Michael Natterer's avatar Michael Natterer 😴

Bug 700653 - Duplicate "(time ...)" values in gimp-curves-tool.settings

and gimp-levels-tool.settings

Serialize the channel properties manually (not using
gimp_config_serialize_properties()), so the parent class' "time"
property doesn't end up in the config file once per channel.
parent b8dace7a
......@@ -237,7 +237,14 @@ gimp_curves_config_serialize (GimpConfig *config,
{
c_config->channel = channel;
success = gimp_config_serialize_properties (config, writer);
/* Serialize the channel properties manually (not using
* gimp_config_serialize_properties()), so the parent class'
* "time" property doesn't end up in the config file once per
* channel. See bug #700653.
*/
success =
(gimp_config_serialize_property_by_name (config, "channel", writer) &&
gimp_config_serialize_property_by_name (config, "curve", writer));
if (! success)
break;
......
......@@ -255,7 +255,18 @@ gimp_levels_config_serialize (GimpConfig *config,
{
l_config->channel = channel;
success = gimp_config_serialize_properties (config, writer);
/* serialize the channel properties manually (not using
* gimp_config_serialize_properties()), so the parent class'
* "time" property doesn't end up in the config file one per
* channel. See bug #700653.
*/
success =
(gimp_config_serialize_property_by_name (config, "channel", writer) &&
gimp_config_serialize_property_by_name (config, "gamma", writer) &&
gimp_config_serialize_property_by_name (config, "low-input", writer) &&
gimp_config_serialize_property_by_name (config, "high-input", writer) &&
gimp_config_serialize_property_by_name (config, "low-output", writer) &&
gimp_config_serialize_property_by_name (config, "high-output", writer));
if (! success)
break;
......
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