diff options
author | Poommetee Ketson <poommetee@protonmail.com> | 2017-08-02 03:12:02 +0700 |
---|---|---|
committer | Poommetee Ketson <poommetee@protonmail.com> | 2017-08-02 03:12:02 +0700 |
commit | bff951848397530a15e324cf3d95a5d11a9c95d3 (patch) | |
tree | 797679bfa33956f98223e984a1b6297cfd2093d6 /scene/gui/tree.cpp | |
parent | daad16b7c7a10f0f1ede92899573e9e354c9d2cd (diff) | |
download | redot-engine-bff951848397530a15e324cf3d95a5d11a9c95d3.tar.gz |
Tree: fix index error with expanded column
Diffstat (limited to 'scene/gui/tree.cpp')
-rw-r--r-- | scene/gui/tree.cpp | 1 |
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++; |