Fixed bug #3101, problem on ellipse2poly function

This commit is contained in:
StevenPuttemans 2013-07-17 15:21:23 +02:00
parent 886c009da6
commit c3dee28394

View File

@ -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]);
}