Bug 564869 – GIMP crashes on selecting Tools->GEGL operation

2008-12-21  Sven Neumann  <sven@gimp.org>

	Bug 564869 – GIMP crashes on selecting Tools->GEGL operation

	* app/tools/gimptool.c (gimp_tool_initialize): check if the tool
	has set an error.


svn path=/trunk/; revision=27819
This commit is contained in:
Sven Neumann 2008-12-21 15:49:12 +00:00 committed by Sven Neumann
parent 5700bd6003
commit 6b74d79844
2 changed files with 13 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2008-12-21 Sven Neumann <sven@gimp.org>
Bug 564869 GIMP crashes on selecting Tools->GEGL operation
* app/tools/gimptool.c (gimp_tool_initialize): check if the tool
has set an error.
2008-12-21 Sven Neumann <sven@gimp.org>
Bug 565138 python-fu-foggify does not check if image is in rgb mode

View File

@ -446,8 +446,12 @@ gimp_tool_initialize (GimpTool *tool,
if (! GIMP_TOOL_GET_CLASS (tool)->initialize (tool, display, &error))
{
gimp_tool_message_literal (tool, display, error->message);
g_clear_error (&error);
if (error)
{
gimp_tool_message_literal (tool, display, error->message);
g_clear_error (&error);
}
return FALSE;
}