diff --git a/Code/Seg/BlurredSegment/blurredsegmentproto.cpp b/Code/Seg/BlurredSegment/blurredsegmentproto.cpp index 6e2e1a6624979012e1283b1f19943dbc999a0f29..8903390d09307e869330944fa68eccdeb5ab474b 100755 --- a/Code/Seg/BlurredSegment/blurredsegmentproto.cpp +++ b/Code/Seg/BlurredSegment/blurredsegmentproto.cpp @@ -254,6 +254,11 @@ BlurredSegment *BlurredSegmentProto::endOfBirth () { Pt2i llast = plist->frontPoint (); Pt2i rlast = plist->backPoint (); + if (llast.equals (rlast)) // Strange, should not be flat, rightok or leftok + { + plist = NULL; + return (NULL); + } int xmin = llast.x (); if (rlast.x () < llast.x ()) xmin = rlast.x (); int ymin = llast.y ();