mirror of https://github.com/GNOME/gimp.git
app: fix use of NULL canvas item in iscissors tool
... when editing an empty segment in interactive mode
This commit is contained in:
parent
323aea658d
commit
09d6f2bad1
|
@ -798,7 +798,8 @@ gimp_iscissors_tool_draw (GimpDrawTool *draw_tool)
|
|||
segment->x1, segment->y1,
|
||||
segment->x2, segment->y2);
|
||||
|
||||
gimp_canvas_item_set_highlight (item, TRUE);
|
||||
if (item)
|
||||
gimp_canvas_item_set_highlight (item, TRUE);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue