]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed Vadims fix.
authorRobert Roebling <robert@roebling.de>
Thu, 10 Feb 2000 19:31:55 +0000 (19:31 +0000)
committerRobert Roebling <robert@roebling.de>
Thu, 10 Feb 2000 19:31:55 +0000 (19:31 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5957 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/listctrl.cpp

index bc7f6ae3a7922f79bcad8dcf4be01c558ee3d544..cb0696824c6e0b8e86acb4bb1ab33ceaa34ce309 100644 (file)
@@ -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;