]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/contrib/gizmos/treelistctrl.cpp
removed a debugging print
[wxWidgets.git] / wxPython / contrib / gizmos / treelistctrl.cpp
index b952058185adeed91f9fd2893b901498ee1a8526..fa64596b93a6542249642c90ddf0e0be083f0175 100644 (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;
@@ -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();
     }
 }