Commit 28bd9bf7 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer
Browse files

don't HALT the active tool if it is in "preserve" mode. Fixes crashes when

2003-01-03  Michael Natterer  <mitch@gimp.org>

	* app/tools/tool_manager.c (tool_manager_image_undo_start): don't
	HALT the active tool if it is in "preserve" mode. Fixes crashes
	when e.g. the transform tool was pushing an undo group and
	implicitly HALTing itself in the middle of the transform
	operation.
parent 4bb66b59
2003-01-03 Michael Natterer <mitch@gimp.org>
* app/tools/tool_manager.c (tool_manager_image_undo_start): don't
HALT the active tool if it is in "preserve" mode. Fixes crashes
when e.g. the transform tool was pushing an undo group and
implicitly HALTing itself in the middle of the transform
operation.
2003-01-03 Michael Natterer <mitch@gimp.org>
* app/widgets/gimpdialogfactory.c
......
......@@ -761,7 +761,8 @@ tool_manager_image_undo_start (GimpImage *gimage,
tool_manager->active_tool->gdisp &&
tool_manager->active_tool->gdisp->gimage == gimage)
{
tool_manager_control_active (gimage->gimp, HALT,
tool_manager->active_tool->gdisp);
if (! gimp_tool_control_preserve (tool_manager->active_tool->control))
tool_manager_control_active (gimage->gimp, HALT,
tool_manager->active_tool->gdisp);
}
}
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