Browse Source

Merge pull request #10027 from Noshyaar/pr-tree

Tree: fix index error with expanded column
Rémi Verschelde 8 years ago
parent
commit
6dd1cdc9db
1 changed files with 0 additions and 1 deletions
  1. 0 1
      scene/gui/tree.cpp

+ 0 - 1
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++;