From edb3b5f4fd7981c7342cabfe0066be125d0f4471 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Kr=C3=B6g?= Date: Mon, 28 Sep 2020 16:10:11 +0200 Subject: [PATCH] The vertex is always the same, no need to store it with the segment --- src/ol/interaction/Modify.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ol/interaction/Modify.js b/src/ol/interaction/Modify.js index 70d54e5696..86aa1a07dd 100644 --- a/src/ol/interaction/Modify.js +++ b/src/ol/interaction/Modify.js @@ -960,7 +960,7 @@ class Modify extends PointerInteraction { !componentSegments[uid][1] && this.insertVertexCondition_(evt) ) { - insertVertices.push([segmentDataMatch, vertex]); + insertVertices.push(segmentDataMatch); } } @@ -969,7 +969,7 @@ class Modify extends PointerInteraction { } for (let j = insertVertices.length - 1; j >= 0; --j) { - this.insertVertex_.apply(this, insertVertices[j]); + this.insertVertex_(insertVertices[j], vertex); } } return !!this.vertexFeature_;