app: don't rely on gimp_brush_tool_create_outline() returning an outline
It can just as well return NULL.
This commit is contained in:
parent
5a1a3209e9
commit
b77b94d3ed
1 changed files with 7 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue