summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorPawel Kowal <pkowal1982@gmail.com>2016-09-19 23:07:24 +0200
committerPawel Kowal <pkowal1982@gmail.com>2016-09-19 23:07:24 +0200
commitdd4f2a2ccb2d32aec0157562095e086b6c6a11be (patch)
tree3c24b84ab44b917614b01462c296032110e39db8 /scene
parentc05ff0577fd9cc39a6968e65743f7d7da711bfe2 (diff)
Use full width of TreeItem::Cell to change value in CELL_MODE_CHECK
Diffstat (limited to 'scene')
-rw-r--r--scene/gui/tree.cpp13
1 files changed, 4 insertions, 9 deletions
diff --git a/scene/gui/tree.cpp b/scene/gui/tree.cpp
index 20794b2faa..2a03218059 100644
--- a/scene/gui/tree.cpp
+++ b/scene/gui/tree.cpp
@@ -1701,16 +1701,11 @@ int Tree::propagate_mouse_event(const Point2i &p_pos,int x_ofs,int y_ofs,bool p_
} break;
case TreeItem::CELL_MODE_CHECK: {
- Ref<Texture> checked = cache.checked;
bring_up_editor=false; //checkboxes are not edited with editor
- if (x>=0 && x<= checked->get_width()+cache.hseparation ) {
-
-
- p_item->set_checked(col,!c.checked);
- item_edited(col,p_item);
- click_handled=true;
- //p_item->edited_signal.call(col);
- }
+ p_item->set_checked(col, !c.checked);
+ item_edited(col, p_item);
+ click_handled = true;
+ //p_item->edited_signal.call(col);
} break;
case TreeItem::CELL_MODE_RANGE: