Skip to content

Commit 407e53d

Browse files
committed
acquire(tree, Branch): use mbrtype() for def. br
1 parent a621441 commit 407e53d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/rtree/rtree.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ function acquire(tree::RTree, ::Type{<:Leaf}, lev::Int = 1, br::Rect = empty(mbr
174174
return leaf
175175
end
176176

177-
function acquire(tree::RTree, ::Type{<:Branch}, lev::Int, br::Rect = empty(regiontype(tree)))
177+
function acquire(tree::RTree, ::Type{<:Branch}, lev::Int, br::Rect = empty(mbrtype(tree)))
178178
@assert lev > 1
179179
node = acquire!(lev == 2 ? tree.twigpool : tree.branchpool)
180180
@assert isempty(node)

0 commit comments

Comments
 (0)