Skip to content

Commit

Permalink
handle no npoints arg
Browse files Browse the repository at this point in the history
  • Loading branch information
Dane Springmeyer committed Jan 24, 2014
1 parent 49c6e8f commit 247519e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arc.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ GreatCircle.prototype.Arc = function(npoints,options) {
var first_pass = [];
//var minx = 0;
//var maxx = 0;
if (npoints <= 2) {
if (!npoints || npoints <= 2) {
first_pass.push([this.start.lon, this.start.lat]);
first_pass.push([this.end.lon, this.end.lat]);
} else {
Expand Down

0 comments on commit 247519e

Please sign in to comment.