Skip to content

Commit 9ad102d

Browse files
committed
Small bugfix in InsertWithRebalance
(cherry picked from commit 4dd8f8d)
1 parent 5f9a72f commit 9ad102d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

octree.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2116,6 +2116,9 @@ namespace OrthoTree
21162116
};
21172117

21182118
auto const cf = [&] {
2119+
if (parentDepth == entityDepth)
2120+
return ControlFlow::InsertInParentNode;
2121+
21192122
if (parentDepth < this->m_maxDepthNo)
21202123
{
21212124
auto const isParentNotLeafNode = parentNode.IsAnyChildExist();

0 commit comments

Comments
 (0)