]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/listctrl.cpp
Fix 62 harmless but annoying Clang warnings in wxOSX build.
[wxWidgets.git] / src / generic / listctrl.cpp
index 834eac9ac3f49c2350b5da6409fbc82e207617d5..d76348f29b017052e66913666b1eb5f2e35291c1 100644 (file)
@@ -5149,8 +5149,8 @@ void wxGenericListCtrl::DoScreenToClient( int *x, int *y ) const
 
 wxSize wxGenericListCtrl::DoGetBestClientSize() const
 {
-    // Something is better than nothing even if this is completely arbitrary.
-    wxSize sizeBest(100, 80);
+    // The base class version can compute the best size in report view only.
+    wxSize sizeBest = wxListCtrlBase::DoGetBestClientSize();
 
     if ( !InReportView() )
     {