Commit 07d2d5af authored by Ell's avatar Ell

app: fix CRITICAL when initializing the perspective-clone tool

When initializaing the perspective-clone tool in paint mode, the
GimpDrawTool may already be active, causing the call to
gimp_draw_tool_start() to fail with a CRITICAL.  Stop the draw tool
first, if active, to avoid that.
parent e5c9314a
......@@ -260,6 +260,9 @@ gimp_perspective_clone_tool_initialize (GimpTool *tool,
/* start drawing the bounding box and handles... */
if (gimp_draw_tool_is_active (GIMP_DRAW_TOOL (tool)))
gimp_draw_tool_stop (GIMP_DRAW_TOOL (tool));
gimp_draw_tool_start (GIMP_DRAW_TOOL (tool), display);
/* Save the current transformation info */
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