Commit 4a234e44 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

do a proper fix for bug #131680.

2004-01-16  Sven Neumann  <sven@gimp.org>

	* app/tools/gimpcroptool.c (crop_recalc): do a proper fix for bug
	#131680.
parent 04d7e139
2004-01-16 Sven Neumann <sven@gimp.org>
* app/tools/gimpcroptool.c (crop_recalc): do a proper fix for bug
#131680.
2004-01-15 DindinX <david@dindinx.org>
 
* app/tools/gimpcroptool.c: bloc some signals before destroying the
info dialog box, to prevent accessing to freed memory
fixes bug #131680
* app/tools/gimpcroptool.c: block some signals before destroying
the info dialog box, to prevent accessing to freed memory fixes
bug #131680
 
2004-01-16 Sven Neumann <sven@gimp.org>
 
......@@ -843,6 +843,9 @@ crop_recalc (GimpCropTool *crop)
{
GimpTool *tool = GIMP_TOOL (crop);
if (! tool->gdisp)
return;
gimp_display_shell_transform_xy (GIMP_DISPLAY_SHELL (tool->gdisp->shell),
crop->x1, crop->y1,
&crop->dx1, &crop->dy1,
......@@ -1066,12 +1069,9 @@ crop_response (GtkWidget *widget,
tool = GIMP_TOOL (crop);
options = GIMP_CROP_OPTIONS (tool->tool_info->tool_options);
g_signal_handlers_block_by_func (crop->origin_sizeentry,
crop_origin_changed,
crop);
g_signal_handlers_block_by_func (crop->size_sizeentry,
crop_size_changed,
crop);
if (crop->crop_info)
info_dialog_popdown (crop->crop_info);
switch (response_id)
{
case GIMP_CROP_MODE_CROP:
......@@ -1087,9 +1087,6 @@ crop_response (GtkWidget *widget,
break;
}
if (crop->crop_info)
info_dialog_popdown (crop->crop_info);
if (gimp_draw_tool_is_active (GIMP_DRAW_TOOL (crop)))
gimp_draw_tool_stop (GIMP_DRAW_TOOL (crop));
......
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