diff --git a/docs/changes.txt b/docs/changes.txt index 52b72d39e9..74939c4f0e 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -621,7 +621,6 @@ All (GUI): - Add wxMask::GetBitmap() for wxMSW, wxGTK and wxOSX - Add wxCheckListBox::GetCheckedItems() (hartwigw). - Add wxAUI_TB_PLAIN_BACKGROUND wxAuiToolBar style (Allann Jones). -- Fix off by 1 error in wxGenericListCtrl::HitTest() (Daniel Hyams). - Make wxGenericDataViewCtrl::SetFont() really work (Laurent Poujoulat). wxGTK: 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 ) {