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



commit ecc49ed9c6c7eeb7cd27955547fdec349d06723f
Author: Thomas Manni <thomas manni free fr>
Date:   Fri Nov 25 07:44:49 2016 +0100

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

 app/tools/gimpiscissorstool.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/tools/gimpiscissorstool.c b/app/tools/gimpiscissorstool.c
index 047e747..71723fc 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;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]