Commit c3dee283 authored by StevenPuttemans's avatar StevenPuttemans

Fixed bug #3101, problem on ellipse2poly function

parent 886c009d
......@@ -888,9 +888,10 @@ void ellipse2Poly( Point center, Size axes, int angle,
pt.y = cvRound( cy + x * beta + y * alpha );
if( pt != prevPt )
pts.push_back(pt);
prevPt = pt;
}
if( pts.size() < 2 )
if( pts.size() == 1 )
pts.push_back(pts[0]);
}
......
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