Only update the index for the current component

This commit is contained in:
ahocevar
2014-03-12 13:02:52 +01:00
parent 934664296f
commit 62034e8fb9

View File

@@ -582,6 +582,7 @@ ol.interaction.Modify.prototype.insertVertex_ = function(segmentData, vertex) {
for (var i = 0, ii = segmentDataMatches.length; i < ii; ++i) {
var segmentDataMatch = segmentDataMatches[i];
if (segmentDataMatch.geometry === geometry &&
segmentDataMatch.depth[0] == depth[0] &&
segmentDataMatch.index > index) {
++segmentDataMatch.index;
}