Commit ecc49ed9 authored by Thomas Manni's avatar Thomas Manni

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

parent 4a9a0723
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment