app: don't overwrite all tool options' "tool" and "paint-info"

with bogus values from contextrc, we want them to always match the
tool option's type.
This commit is contained in:
Michael Natterer 2010-04-21 20:41:04 +02:00
parent 67377bb930
commit 94181ce538
1 changed files with 3 additions and 1 deletions

View File

@ -313,7 +313,9 @@ gimp_tools_restore (Gimp *gimp)
gimp_context_copy_properties (gimp_get_user_context (gimp),
GIMP_CONTEXT (tool_info->tool_options),
GIMP_CONTEXT_ALL_PROPS_MASK &~
tool_info->context_props);
(tool_info->context_props |
GIMP_CONTEXT_TOOL_MASK |
GIMP_CONTEXT_PAINT_INFO_MASK));
gimp_tool_options_deserialize (tool_info->tool_options, NULL);