Skip to content

Commit

Permalink
Only update the index for the current component
Browse files Browse the repository at this point in the history
  • Loading branch information
ahocevar committed Mar 12, 2014
1 parent 9346642 commit 62034e8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ol/interaction/modifyinteraction.js
Expand Up @@ -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;
}
Expand Down

0 comments on commit 62034e8

Please sign in to comment.