fixed a bug in wxListCtrl: SetColumnWidth didn't set wxListHeaderWindow::m_dirty

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11505 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík 2001-08-28 22:11:11 +00:00
parent c6d1e23287
commit abe4a4f120

View File

@ -3453,6 +3453,9 @@ void wxListMainWindow::SetColumnWidth( int col, int width )
_T("SetColumnWidth() can only be called in report mode.") ); _T("SetColumnWidth() can only be called in report mode.") );
m_dirty = TRUE; m_dirty = TRUE;
wxListHeaderWindow *headerWin = GetListCtrl()->m_headerWin;
if ( headerWin )
headerWin->m_dirty = TRUE;
wxListHeaderDataList::Node *node = m_columns.Item( col ); wxListHeaderDataList::Node *node = m_columns.Item( col );
wxCHECK_RET( node, _T("no column?") ); wxCHECK_RET( node, _T("no column?") );