Correct a compile warning

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24592 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2003-11-19 06:28:39 +00:00
parent 6a30d63aed
commit cd303fbbc1

View File

@@ -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;