don't ignore wxLC_NO_HEADER style when inserting first column
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21060 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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 */);
|
||||
}
|
||||
|
Reference in New Issue
Block a user