diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index b4363d0769..fccce69d31 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -1223,7 +1223,6 @@ void wxListHeaderWindow::OnMouse( wxMouseEvent &event ) // we want to work with logical coords int x; parent->CalcUnscrolledPosition(event.GetX(), 0, &x, NULL); - int y = event.GetY(); if (m_isDragging) { @@ -1276,7 +1275,7 @@ void wxListHeaderWindow::OnMouse( wxMouseEvent &event ) xpos += m_owner->GetColumnWidth( col ); m_column = col; - if ( (abs(x-xpos) < 3) && (y < 22) ) + if ( abs(x-xpos) < 3 ) { // near the column border hit_border = true;