summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorGilles Roudiere <gilles.roudiere@gmail.com>2017-10-25 10:12:26 +0200
committerGitHub <noreply@github.com>2017-10-25 10:12:26 +0200
commit3504bb70a48dd7c1d0d587900c96bbd7af91754b (patch)
treee22c3d3592b6570122426bb393b5e503eb573c44 /scene
parent3842848d767d2be5e528690fcec9c266eeb2bfc5 (diff)
parent708982bee191988e028f2d472412582492781219 (diff)
Merge pull request #12383 from AntiSC2/master
Fix margin with tree drawing
Diffstat (limited to 'scene')
-rw-r--r--scene/gui/tree.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/tree.cpp b/scene/gui/tree.cpp
index 931dcfed91..5c6f2b0d01 100644
--- a/scene/gui/tree.cpp
+++ b/scene/gui/tree.cpp
@@ -1126,7 +1126,7 @@ int Tree::draw_item(const Point2i &p_pos, const Point2 &p_draw_ofs, const Size2
if (p_item->cells[i].selected && select_mode != SELECT_ROW) {
- Rect2i r(item_rect.position, item_rect.size);
+ Rect2i r(cell_rect.position, cell_rect.size);
if (p_item->cells[i].text.size() > 0) {
float icon_width = p_item->cells[i].get_icon_size().width;
r.position.x += icon_width;