app: fix use of NULL canvas item in iscissors tool

... when editing an empty segment in interactive mode
This commit is contained in:
Ell 2017-06-11 11:23:52 -04:00
parent 323aea658d
commit 09d6f2bad1
1 changed files with 2 additions and 1 deletions

View File

@ -798,7 +798,8 @@ gimp_iscissors_tool_draw (GimpDrawTool *draw_tool)
segment->x1, segment->y1, segment->x1, segment->y1,
segment->x2, segment->y2); segment->x2, segment->y2);
gimp_canvas_item_set_highlight (item, TRUE); if (item)
gimp_canvas_item_set_highlight (item, TRUE);
} }
} }
} }