diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index e8dccfc428..0a9299f9df 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -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 */); }