]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/listctrl.cpp
removed static methods from wxAppTraitsBase, this doesn't work well in non-monolithic...
[wxWidgets.git] / src / generic / listctrl.cpp
index e8dccfc428b6ed18da2e1e800fb35a9153a5e04d..0a9299f9df0053ff6010aff82d76180a4866325c 100644 (file)
@@ -4930,7 +4930,7 @@ long wxGenericListCtrl::InsertColumn( long col, wxListItem &item )
 
     // if we hadn't had header before and have it now we need to relayout the
     // window
-    if ( GetColumnCount() == 1 )
+    if ( GetColumnCount() == 1 && m_mainWin->HasHeader() )
     {
         ResizeReportView(TRUE /* have header */);
     }