Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/rtree.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ var RTree = function(width){
}
i -= 1;
}
} else if("nodes" in ret_obj) { // We are unsplitting
} else if("nodes" in ret_obj && ret_obj.nodes.length > 0) { // We are unsplitting
tree.nodes.splice(i+1, 1); // Remove unsplit node
// ret_obj.nodes contains a list of elements removed from the tree so far
if(tree.nodes.length > 0)
Expand Down Expand Up @@ -708,4 +708,4 @@ RTree.Rectangle.make_MBR = function(nodes, rect) {
RTree.Rectangle.expand_rectangle(rect, nodes[i]);

return(rect);
};
};