Commit 54f709ec authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

added a g_return_if_fail() check to catch bug #414006.

2007-03-13  Sven Neumann  <sven@gimp.org>

	* app/tools/gimptransformtool.c (gimp_transform_tool_response):
	added a g_return_if_fail() check to catch bug #414006.


svn path=/trunk/; revision=22108
parent 9dbebcab
2007-03-13 Sven Neumann <sven@gimp.org>
* app/tools/gimptransformtool.c (gimp_transform_tool_response):
added a g_return_if_fail() check to catch bug #414006.
2007-03-13 Sven Neumann <sven@gimp.org>
* libgimpwidgets/gimpwidgets.c (gimp_label_set_attributes): fixed
......@@ -1734,14 +1734,13 @@ gimp_transform_tool_response (GtkWidget *widget,
gint response_id,
GimpTransformTool *tr_tool)
{
GimpTool *tool = GIMP_TOOL (tr_tool);
switch (response_id)
{
case RESPONSE_RESET:
{
GimpTool *tool;
gint i;
tool = GIMP_TOOL (tr_tool);
gint i;
gimp_draw_tool_pause (GIMP_DRAW_TOOL (tool));
......@@ -1763,7 +1762,8 @@ gimp_transform_tool_response (GtkWidget *widget,
break;
case GTK_RESPONSE_OK:
gimp_transform_tool_doit (tr_tool, GIMP_TOOL (tr_tool)->display);
g_return_if_fail (tool->display != NULL);
gimp_transform_tool_doit (tr_tool, tool->display);
break;
default:
......
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