Set "subitem" argument of HitTest() to -1 in generic wxListCtrl

Sub-item hit testing is still not implemented, but at least initialize
the output parameter to the documented value instead of leaving some
junk in it.
This commit is contained in:
Vadim Zeitlin 2021-08-23 00:24:24 +02:00
parent a90dd434f7
commit 0e9e6aaf3a

View File

@ -5544,9 +5544,12 @@ long wxGenericListCtrl::FindItem( long WXUNUSED(start), const wxPoint& pt,
return m_mainWin->FindItem( pt );
}
// TODO: sub item hit testing
long wxGenericListCtrl::HitTest(const wxPoint& point, int& flags, long *) const
long wxGenericListCtrl::HitTest(const wxPoint& point, int& flags, long *col) const
{
// TODO: sub item hit testing
if ( col )
*col = -1;
return m_mainWin->HitTest( (int)point.x, (int)point.y, flags );
}