Commit 305dc2ff authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer

make sure that active_tool->tool_info is non-NULL before dereferencing it.

2003-05-12  Michael Natterer  <mitch@gimp.org>

	* app/tools/tool_manager.c (tool_manager_tool_changed): make sure
	that active_tool->tool_info is non-NULL before dereferencing it.
	(Spotted by Ville Pätsi).
parent eb335e05
2003-05-12 Michael Natterer <mitch@gimp.org>
* app/tools/tool_manager.c (tool_manager_tool_changed): make sure
that active_tool->tool_info is non-NULL before dereferencing it.
(Spotted by Ville Ptsi).
2003-05-11 Sven Neumann <sven@gimp.org>
* tools/pdbgen/pdb/guides.pdb: added a missing break that broke
......@@ -753,7 +753,8 @@ tool_manager_tool_changed (GimpContext *user_context,
}
/* disconnect the old tool's context */
if (tool_manager->active_tool &&
if (tool_manager->active_tool &&
tool_manager->active_tool->tool_info &&
tool_manager->active_tool->tool_info->use_context)
{
GimpToolInfo *old_tool_info;
......
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