Fix off-by-one error

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45074 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2007-03-26 19:53:37 +00:00
parent c322433224
commit bb7882b5d1

View File

@@ -1336,7 +1336,7 @@ int wxTreeListHeaderWindow::XToCol(int x)
void wxTreeListHeaderWindow::RefreshColLabel(int col) void wxTreeListHeaderWindow::RefreshColLabel(int col)
{ {
if ( col > GetColumnCount() ) if ( col >= GetColumnCount() )
return; return;
int x = 0; int x = 0;