From 5d3a5ae68efce926994b309e710503abe9f28d4f Mon Sep 17 00:00:00 2001 From: Tom Payne Date: Wed, 27 Nov 2013 15:07:36 +0100 Subject: [PATCH] Fix infinite loop bug in ol.structs.RBush --- src/ol/structs/rbush.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ol/structs/rbush.js b/src/ol/structs/rbush.js index 8dd8af4960..549c3be3da 100644 --- a/src/ol/structs/rbush.js +++ b/src/ol/structs/rbush.js @@ -614,7 +614,8 @@ ol.structs.RBush.prototype.remove_ = function(extent, value) { return; } } - ++index; + node = path.pop(); + index = indexes.pop(); } else if (index < node.children.length) { child = node.children[index]; if (ol.extent.containsExtent(child.extent, extent)) {