Commit d3e2db88 authored by Michael Natterer's avatar Michael Natterer 😴

app: restart the draw tool after moving a guide

so the dropped guide is highlighted. Also don't uselessly stop/start
the draw tool in each oper_update(), only do so when the display
parent 9d36984d
......@@ -437,6 +437,9 @@ gimp_move_tool_button_release (GimpTool *tool,
move->moving_guide = FALSE;
move->guide_position = -1;
move->guide_orientation = GIMP_ORIENTATION_UNKNOWN;
if (move->guide)
gimp_draw_tool_start (GIMP_DRAW_TOOL (tool), display);
......@@ -655,12 +658,18 @@ gimp_move_tool_oper_update (GimpTool *tool,
GimpDrawTool *draw_tool = GIMP_DRAW_TOOL (tool);
if (gimp_draw_tool_is_active (draw_tool))
gimp_draw_tool_pause (draw_tool);
if (gimp_draw_tool_is_active (draw_tool) &&
draw_tool->display != display)
gimp_draw_tool_stop (draw_tool);
move->guide = guide;
gimp_draw_tool_start (draw_tool, display);
if (! gimp_draw_tool_is_active (draw_tool))
gimp_draw_tool_start (draw_tool, display);
gimp_draw_tool_resume (draw_tool);
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