]> git.saurik.com Git - wxWidgets.git/commitdiff
Corrected compile warnings, took out debug printf
authorRobin Dunn <robin@alldunn.com>
Tue, 28 Sep 2004 19:24:58 +0000 (19:24 +0000)
committerRobin Dunn <robin@alldunn.com>
Tue, 28 Sep 2004 19:24:58 +0000 (19:24 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29507 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/contrib/gizmos/wxCode/src/treelistctrl.cpp

index 8aef1b7cba842e019244d5a5d2527c113d239331..ad47a548e279d9686e0303acc473919a48f4057f 100644 (file)
@@ -4629,10 +4629,10 @@ void wxTreeListCtrl::CalculateAndSetHeaderHeight()
         h += d + 2 * HEADER_OFFSET_Y + EXTRA_HEIGHT;
 
         // only update if changed
-        if ( h != m_headerHeight )
+        if ( h != (int)m_headerHeight )
         {
-            m_headerHeight = h;
-            //m_header_win->SetSize(m_header_win->GetSize().x, m_headerHeight);
+            m_headerHeight = (size_t)h;
+            m_header_win->SetSize(m_header_win->GetSize().x, m_headerHeight);
         }
     }
 }
@@ -4642,7 +4642,6 @@ void wxTreeListCtrl::OnSize(wxSizeEvent& WXUNUSED(event))
 {
     int w, h;
     GetClientSize(&w, &h);
-    printf("%d  (%d, %d)\n", m_headerHeight, w, h);
     if (m_header_win)
         m_header_win->SetSize(0, 0, w, m_headerHeight);
     if (m_main_win)