Mercurial > gemma
changeset 4765:db6c2955ee31
Fixed logical error in detecting if a ring is closed or not.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Sat, 19 Oct 2019 22:07:09 +0200 |
parents | 5c80a33edd44 |
children | ffa189c07334 |
files | pkg/octree/polygon.go |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/pkg/octree/polygon.go Sat Oct 19 19:40:51 2019 +0200 +++ b/pkg/octree/polygon.go Sat Oct 19 22:07:09 2019 +0200 @@ -367,7 +367,7 @@ const eps = 0.0000001 - if math.Abs(sX-eX) > eps && math.Abs(sY-eY) > eps { + if math.Abs(sX-eX) > eps || math.Abs(sY-eY) > eps { // It's not closed! return false }