Don't draw invisible circles

This commit is contained in:
Conrad Irwin 2015-09-05 00:03:43 -07:00
parent bb2aac32e0
commit 8d5249760a

@ -926,6 +926,10 @@
* Arc command!
*/
ctx.prototype.arc = function(x, y, radius, startAngle, endAngle, counterClockwise) {
// in canvas no circle is drawn if no angle is provided.
if (startAngle === endAngle) {
return;
}
startAngle = startAngle % (2*Math.PI);
endAngle = endAngle % (2*Math.PI);
if(startAngle === endAngle) {