From 1d81a219db8aa714037662a66e22aac6f8430fc5 Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Thu, 10 Feb 2000 19:31:55 +0000 Subject: [PATCH] Fixed Vadims fix. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5957 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/listctrl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index bc7f6ae3a7..cb0696824c 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -956,7 +956,7 @@ void wxListHeaderWindow::OnMouse( wxMouseEvent &event ) { xpos += m_owner->GetColumnWidth( j ); m_column = j; - if ((abs(x-xpos) < 3) && (y < 22)) + if ((abs(x-xpos) < 3) && (y < 22) && (m_column < m_owner->GetColumnCount()-1)) { hit_border = TRUE; break;