Added brackets around line 888-892 for correct code!
authorStevenPuttemans <steven.puttemans@lessius.eu>
Thu, 18 Jul 2013 13:34:38 +0000 (15:34 +0200)
committerStevenPuttemans <steven.puttemans@lessius.eu>
Thu, 18 Jul 2013 13:34:38 +0000 (15:34 +0200)
modules/core/src/drawing.cpp

index fa0c5cf..144fa96 100644 (file)
@@ -886,9 +886,10 @@ void ellipse2Poly( Point center, Size axes, int angle,
         Point pt;
         pt.x = cvRound( cx + x * alpha - y * beta );
         pt.y = cvRound( cy + x * beta + y * alpha );
-        if( pt != prevPt )
+        if( pt != prevPt ){
             pts.push_back(pt);
             prevPt = pt;
+        }
     }
 
     if( pts.size() == 1 )