Update drawing.cpp
authorSuleyman TURKMEN <sturkmen@hotmail.com>
Mon, 7 Sep 2015 08:30:14 +0000 (11:30 +0300)
committerSuleyman TURKMEN <sturkmen@hotmail.com>
Mon, 7 Sep 2015 08:30:14 +0000 (11:30 +0300)
https://github.com/Itseez/opencv/issues/4791

modules/imgproc/src/drawing.cpp

index 7f90635..c2db764 100644 (file)
@@ -1748,7 +1748,7 @@ void circle( InputOutputArray _img, Point center, int radius,
     double buf[4];
     scalarToRawData(color, buf, img.type(), 0);
 
-    if( thickness > 1 || line_type >= CV_AA )
+    if( thickness > 1 || line_type >= CV_AA || shift > 0 )
     {
         center.x <<= XY_SHIFT - shift;
         center.y <<= XY_SHIFT - shift;