Fix deleting columns in wxGridStringTable with custom column labels.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 19 Jul 2011 22:35:48 +0000 (22:35 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 19 Jul 2011 22:35:48 +0000 (22:35 +0000)
commitd32fb5f9f47e5224fc765daa369cf34df4a7d506
tree8e74315bd087f763d62440b5b7e3955f9e659fef
parent8c6b0819ecb3f8c7a4b84869ee273dff82358159
Fix deleting columns in wxGridStringTable with custom column labels.

We erroneously removed too many elements from m_colLabels array (basically we
always removed all the elements remaining after this column, irrespectively of
the actual number of columns to delete), fix this by removing at most the
specified number of columns -- or possibly less if the array isn't entirely
filled.

See #13329.

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