summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2017-08-01 22:28:56 +0200
committerGitHub <noreply@github.com>2017-08-01 22:28:56 +0200
commit6dd1cdc9dbc0fbcdc0a1484906f4ef25610c4c20 (patch)
tree81c9330ce6c5c0cf0e402fe71551a7f786c6484f /scene/gui
parent64b47574afdd3d791bdb67d458a5e0cd4b64eb08 (diff)
parentbff951848397530a15e324cf3d95a5d11a9c95d3 (diff)
Merge pull request #10027 from Noshyaar/pr-tree
Tree: fix index error with expanded column
Diffstat (limited to 'scene/gui')
-rw-r--r--scene/gui/tree.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/scene/gui/tree.cpp b/scene/gui/tree.cpp
index 1456ab51c0..0b57841be7 100644
--- a/scene/gui/tree.cpp
+++ b/scene/gui/tree.cpp
@@ -1605,7 +1605,6 @@ int Tree::propagate_mouse_event(const Point2i &p_pos, int x_ofs, int y_ofs, bool
int plus = 1;
while (i + plus < columns.size() && !p_item->cells[i + plus].editable && p_item->cells[i + plus].mode == TreeItem::CELL_MODE_STRING && p_item->cells[i + plus].text == "" && p_item->cells[i + plus].icon.is_null()) {
- plus++;
col_width += cache.hseparation;
col_width += get_column_width(i + plus);
plus++;