Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'master' of github.com:cdsmith/gloss-web

  • Loading branch information...
commit 3f70ad5041ea34855dfe14c4969d8d85913f0a34 2 parents 873e609 + b3073a3
@cdsmith authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 web/draw.js
View
4 web/draw.js
@@ -358,7 +358,7 @@ function display(ctx, p, a, b, c, d, e, f)
ctx.save();
ctx.transform(a, b, c, d, e, f);
ctx.beginPath();
- ctx.arc(0, 0, r, 0, 2 * Math.PI);
+ if (r > 0) ctx.arc(0, 0, r, 0, 2 * Math.PI);
ctx.restore();
ctx.stroke();
}
@@ -371,7 +371,7 @@ function display(ctx, p, a, b, c, d, e, f)
ctx.transform(a, b, c, d, e, f);
if (w > 0) ctx.lineWidth = w;
ctx.beginPath();
- ctx.arc(0, 0, r, 0, 2 * Math.PI);
+ if (r > 0) ctx.arc(0, 0, r, 0, 2 * Math.PI);
if (w > 0)
{
ctx.stroke();
Please sign in to comment.
Something went wrong with that request. Please try again.