Skip to content
Snippets Groups Projects
Commit eed9b1ce authored by even's avatar even
Browse files

Singular segment initialization

parent 5f68b665
No related branches found
No related tags found
No related merge requests found
......@@ -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 ();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment