mirror of https://github.com/GNOME/gimp.git
gimpwarptool: start the tool if the cursor is over an image and not started somewhere else
This commit is contained in:
parent
7bc094a443
commit
e6d05c6352
|
@ -330,6 +330,14 @@ gimp_warp_tool_oper_update (GimpTool *tool,
|
|||
GimpWarpTool *wt = GIMP_WARP_TOOL (tool);
|
||||
GimpDrawTool *draw_tool = GIMP_DRAW_TOOL (tool);
|
||||
|
||||
if (!gimp_draw_tool_is_active (draw_tool))
|
||||
{
|
||||
gimp_warp_tool_start (wt, display);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (display == tool->display)
|
||||
{
|
||||
gimp_draw_tool_pause (draw_tool);
|
||||
|
||||
wt->cursor_x = coords->x;
|
||||
|
@ -337,6 +345,8 @@ gimp_warp_tool_oper_update (GimpTool *tool,
|
|||
|
||||
gimp_draw_tool_resume (draw_tool);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
gimp_warp_tool_button_press (GimpTool *tool,
|
||||
|
|
Loading…
Reference in New Issue