iscissors: ensure first and last isegments are distinct before closing the curve

This commit is contained in:
Thomas Manni
2016-11-25 07:44:49 +01:00
parent 4a9a0723f5
commit ecc49ed9c6

View File

@ -1275,7 +1275,7 @@ gimp_iscissors_tool_commit (GimpIscissorsTool *iscissors,
ISegment *first = g_queue_peek_head (iscissors->curve->segments);
ISegment *last = g_queue_peek_tail (iscissors->curve->segments);
if (first && last)
if (first && last && first != last)
{
ISegment *segment;