]> git.saurik.com Git - wxWidgets.git/commit
Fix assert when adding columns to wxGrid using native header.
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 31 May 2013 23:20:48 +0000 (23:20 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 31 May 2013 23:20:48 +0000 (23:20 +0000)
commita2d65663a0e7e5d4633119bf469fe66d8a8897c5
treea7a635df61846cbdf8355a28b203acc6bbf18d95
parent3d184f1e60e6dcdd05d7ef5a8a7eb8c17f9fef22
Fix assert when adding columns to wxGrid using native header.

Change the order of updating m_colWidths array and the native header control
in wxGird::Redimension() to ensure that we can test whether the column is
shown (which results in accessing m_colWidths element at this column index)
from the wxGridHeaderCtrl::SetColumnCount().

Closes #15225.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74063 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/generic/grid.cpp