]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/listctrl.cpp
Ensure there is valid context for DrawRectangle
[wxWidgets.git] / src / generic / listctrl.cpp
index caebe00001f54bc9b2008541402a5a6b0dffde32..b311e031eff67ba789fe96a2a30d8b37906bce6a 100644 (file)
@@ -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 )
         {