X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e1447a973732d973272fcb103d9f3ea7d24a02ec..2abd8d78a69cbe726f957de91929feeeac21cfb0:/wxPython/contrib/gizmos/treelistctrl.cpp diff --git a/wxPython/contrib/gizmos/treelistctrl.cpp b/wxPython/contrib/gizmos/treelistctrl.cpp index b952058185..fa64596b93 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; @@ -4207,9 +4207,7 @@ void wxTreeListMainWindow::OnScroll(wxScrollWinEvent& event) if(event.GetOrientation() == wxHORIZONTAL) { m_owner->GetHeaderWindow()->Refresh(); -#ifdef __WXMAC__ - m_owner->GetHeaderWindow()->MacUpdateImmediately(); -#endif + m_owner->GetHeaderWindow()->Update(); } }