(svn r18965) -Fix (r17846): Don't compare horizontal positions with vertical.

This commit is contained in:
frosch 2010-01-30 17:42:04 +00:00
parent af50e0a4cf
commit 2f6fe85f23

View File

@ -606,7 +606,8 @@ public:
this->selected = *this->content.Get(id_v);
this->list_pos = id_v;
if (pt.x <= (int)(this->GetWidget<NWidgetBase>(NCLWW_CHECKBOX)->pos_y + this->GetWidget<NWidgetBase>(NCLWW_CHECKBOX)->current_y)) {
const NWidgetBase *checkbox = this->GetWidget<NWidgetBase>(NCLWW_CHECKBOX);
if (IsInsideBS(pt.x, checkbox->pos_x, checkbox->current_x)) {
_network_content_client.ToggleSelectedState(this->selected);
this->content.ForceResort();
}