X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e1447a973732d973272fcb103d9f3ea7d24a02ec..962162620ff8b78f4d25c7f4ccec88ce071dfb2b:/wxPython/contrib/gizmos/treelistctrl.cpp?ds=sidebyside diff --git a/wxPython/contrib/gizmos/treelistctrl.cpp b/wxPython/contrib/gizmos/treelistctrl.cpp index b952058185..b72984d4b8 100644 --- a/wxPython/contrib/gizmos/treelistctrl.cpp +++ b/wxPython/contrib/gizmos/treelistctrl.cpp @@ -1675,7 +1675,7 @@ wxTreeListItem *wxTreeListItem::HitTest(const wxPoint& point, for (i = 0; i < column+1; ++i) { x += theCtrl->m_owner->GetHeaderWindow()->GetColumnWidth(i); } - for (i = column+1; i < theCtrl->GetColumnCount(); ++i) { + for (i = column+1; i < (int)theCtrl->GetColumnCount(); ++i) { int w = theCtrl->m_owner->GetHeaderWindow()->GetColumnWidth(i); if (point.x >= x && point.x < x+w) { flags ^= wxTREE_HITTEST_ONITEMRIGHT;