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

app: don't rely on gimp_brush_tool_create_outline() returning an outline

It can just as well return NULL.
parent 5a1a3209
......@@ -392,9 +392,13 @@ gimp_source_tool_draw (GimpDrawTool *draw_tool)
source_tool->src_x + off_x,
source_tool->src_y + off_y,
FALSE);
gimp_display_shell_add_item (src_shell,
source_tool->src_outline);
g_object_unref (source_tool->src_outline);
if (source_tool->src_outline)
{
gimp_display_shell_add_item (src_shell,
source_tool->src_outline);
g_object_unref (source_tool->src_outline);
}
}
if (! source_tool->src_handle)
......
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