]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed a bug in wxListCtrl: SetColumnWidth didn't set wxListHeaderWindow::m_dirty
authorVáclav Slavík <vslavik@fastmail.fm>
Tue, 28 Aug 2001 22:11:11 +0000 (22:11 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Tue, 28 Aug 2001 22:11:11 +0000 (22:11 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11505 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/listctrl.cpp

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