X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c71d3313a42a8fdc6efd6a0c49ad13def665ef2f..d94974609888885e0b75d0e01d901b03a6213979:/src/generic/listctrl.cpp?ds=inline 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 */); }