From a9e51d85ec899fd9df42cb4a279ecdb35ba50c39 Mon Sep 17 00:00:00 2001 From: Andreas Hocevar Date: Sat, 5 Sep 2020 16:21:01 +0200 Subject: [PATCH] Fix Index adjustment at the beginning of the ring --- src/ol/geom/flat/orient.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ol/geom/flat/orient.js b/src/ol/geom/flat/orient.js index 1fedef56db..ab95816fed 100644 --- a/src/ol/geom/flat/orient.js +++ b/src/ol/geom/flat/orient.js @@ -77,7 +77,7 @@ function findUniqueVertex( i += direction * stride; if (i >= end) { i = offset; - } else if (i <= offset) { + } else if (i < offset) { i = end - stride; } x = flatCoordinates[i];