diff options
| author | eska | 2016-11-11 03:48:13 +0100 |
|---|---|---|
| committer | Rémi Verschelde | 2016-11-15 08:37:53 +0100 |
| commit | 28944e95e7ec129408128e0db33a4ad9eaa4c620 (patch) | |
| tree | 0247d19b9ce5aadc9cfaca54b2b2562c3ecb6fea | |
| parent | 2d6dabc68ed6f49e7055d4be3fa7e06e829b3ae5 (diff) | |
| download | godot-28944e95e7ec129408128e0db33a4ad9eaa4c620.tar.gz godot-28944e95e7ec129408128e0db33a4ad9eaa4c620.tar.zst godot-28944e95e7ec129408128e0db33a4ad9eaa4c620.zip | |
| -rw-r--r-- | scene/gui/tree.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/tree.cpp b/scene/gui/tree.cpp index b8cc3786a..4083e10cc 100644 --- a/scene/gui/tree.cpp +++ b/scene/gui/tree.cpp @@ -1305,7 +1305,7 @@ int Tree::draw_item(const Point2i& p_pos,const Point2& p_draw_ofs, const Size2& int root_ofs = children_pos.x + (hide_folding?cache.hseparation:cache.item_margin); int parent_ofs = p_pos.x + (hide_folding?cache.hseparation:cache.item_margin); Point2i root_pos = Point2i(root_ofs, children_pos.y + label_h/2)-cache.offset+p_draw_ofs; - if (c->get_children() > 0) + if (c->get_children() != NULL) root_pos -= Point2i(cache.arrow->get_width(),0); Point2i parent_pos = Point2i(parent_ofs - cache.arrow->get_width()/2, p_pos.y + label_h/2 + cache.arrow->get_height()/2)-cache.offset+p_draw_ofs; |
