From 35ef65e6b98a7f8a8176ec7312cb394acabffe06 Mon Sep 17 00:00:00 2001 From: Andreas Hocevar Date: Mon, 20 Mar 2017 09:39:34 +0100 Subject: [PATCH] Reset dragSegments after vertex deletion --- src/ol/interaction/modify.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ol/interaction/modify.js b/src/ol/interaction/modify.js index abf0274778b..b9113451cdd 100644 --- a/src/ol/interaction/modify.js +++ b/src/ol/interaction/modify.js @@ -1088,6 +1088,7 @@ ol.interaction.Modify.prototype.removeVertex_ = function() { this.overlay_.getSource().removeFeature(this.vertexFeature_); this.vertexFeature_ = null; } + dragSegments.length = 0; } }