]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/listctrl.cpp
1. Initialized m_displayed to TRUE to solve a cell highlight problem
[wxWidgets.git] / 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;