PathLayer: do not try to calculate zero length great circle path (#390)
This commit is contained in:
parent
b110314077
commit
7142f3410d
@ -153,6 +153,8 @@ public class PathLayer extends Layer {
|
||||
|
||||
/* add one point for every 100kms of the great circle path */
|
||||
int numberOfPoints = (int) (length / 100000);
|
||||
if (numberOfPoints == 0)
|
||||
return;
|
||||
|
||||
addGreatCircle(startPoint, endPoint, numberOfPoints);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user