From ecc49ed9c6c7eeb7cd27955547fdec349d06723f Mon Sep 17 00:00:00 2001 From: Thomas Manni Date: Fri, 25 Nov 2016 07:44:49 +0100 Subject: [PATCH] iscissors: ensure first and last isegments are distinct before closing the curve --- app/tools/gimpiscissorstool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/tools/gimpiscissorstool.c b/app/tools/gimpiscissorstool.c index 047e747e12..71723fc7e1 100644 --- a/app/tools/gimpiscissorstool.c +++ b/app/tools/gimpiscissorstool.c @@ -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;