X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f4f4c3aca4e219caba09091624c7a72cc66c354c..07aaf32633ecf18ec3edfbb41793a112914792d0:/src/generic/listctrl.cpp diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index caebe00001..b311e031ef 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -4144,10 +4144,6 @@ long wxListMainWindow::HitTest( int x, int y, int &flags ) const if ( InReportView() ) { - // Account for the header height if it's present. - if ( HasHeader() ) - y -= GetListCtrl()->m_headerWin->GetSize().y + 1; - size_t current = y / GetLineHeight(); if ( current < count ) {