diff --git a/source/gui/widgets/treebox.cpp b/source/gui/widgets/treebox.cpp index eb859353..c70c4330 100644 --- a/source/gui/widgets/treebox.cpp +++ b/source/gui/widgets/treebox.cpp @@ -1952,7 +1952,7 @@ namespace nana impl_->attr.tree_cont.for_each(shape.first, nl); auto const node = nl.node(); - if (!node) + if (!node || !node->child) return; switch (nl.what())