mirror of https://github.com/GNOME/gimp.git
app: make sure the warp tool halts when the drawable is changed
Set preserve=FALSE by default, also don't set preserve=TRUE around aborting the image map, that's not needed any longer because image map has stopped to be a temporarily destructive thing.
This commit is contained in:
parent
260c62ed94
commit
6f17eb54a1
|
@ -160,6 +160,7 @@ gimp_warp_tool_init (GimpWarpTool *self)
|
|||
{
|
||||
GimpTool *tool = GIMP_TOOL (self);
|
||||
|
||||
gimp_tool_control_set_preserve (tool->control, FALSE);
|
||||
gimp_tool_control_set_motion_mode (tool->control, GIMP_MOTION_MODE_EXACT);
|
||||
gimp_tool_control_set_dirty_mask (tool->control,
|
||||
GIMP_DIRTY_IMAGE |
|
||||
|
@ -564,14 +565,10 @@ gimp_warp_tool_halt (GimpWarpTool *wt)
|
|||
|
||||
if (wt->image_map)
|
||||
{
|
||||
gimp_tool_control_set_preserve (tool->control, TRUE);
|
||||
|
||||
gimp_image_map_abort (wt->image_map);
|
||||
g_object_unref (wt->image_map);
|
||||
wt->image_map = NULL;
|
||||
|
||||
gimp_tool_control_set_preserve (tool->control, FALSE);
|
||||
|
||||
gimp_image_flush (gimp_display_get_image (tool->display));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue