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:
Vadim Zeitlin
2003-06-11 21:58:55 +00:00
parent 2d3441d7e5
commit ac53090cb7

View 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 */);
}