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