Skip to content

Commit

Permalink
Fix bug caused by bugfix. :(
Browse files Browse the repository at this point in the history
  • Loading branch information
colinmorris committed Feb 23, 2017
1 parent 2616bfd commit de342f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class Diagonal {
}

static fromPointAndLength(x, y, len) {
return new Diagonal(x, y, x+len, y+len);
return new Diagonal(x, y, x+(len-1), y+(len-1));
}

get length() {
Expand Down

0 comments on commit de342f5

Please sign in to comment.