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:
@@ -5544,9 +5544,12 @@ long wxGenericListCtrl::FindItem( long WXUNUSED(start), const wxPoint& pt,
|
|||||||
return m_mainWin->FindItem( pt );
|
return m_mainWin->FindItem( pt );
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: sub item hit testing
|
long wxGenericListCtrl::HitTest(const wxPoint& point, int& flags, long *col) const
|
||||||
long wxGenericListCtrl::HitTest(const wxPoint& point, int& flags, long *) const
|
|
||||||
{
|
{
|
||||||
|
// TODO: sub item hit testing
|
||||||
|
if ( col )
|
||||||
|
*col = -1;
|
||||||
|
|
||||||
return m_mainWin->HitTest( (int)point.x, (int)point.y, flags );
|
return m_mainWin->HitTest( (int)point.x, (int)point.y, flags );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user