Fix crash from possible NULL pointer in wxQT list ctrl
Thanks @seandepagnier git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78386 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
		@@ -783,11 +783,13 @@ long wxListCtrl::HitTest(const wxPoint& point, int &flags, long* ptrSubItem) con
 | 
			
		||||
    if ( index.isValid() )
 | 
			
		||||
    {
 | 
			
		||||
        flags = wxLIST_HITTEST_ONITEM;
 | 
			
		||||
        if (ptrSubItem)
 | 
			
		||||
            *ptrSubItem = index.column();
 | 
			
		||||
    }
 | 
			
		||||
    else
 | 
			
		||||
    {
 | 
			
		||||
        flags = wxLIST_HITTEST_NOWHERE;
 | 
			
		||||
        if (ptrSubItem)
 | 
			
		||||
            *ptrSubItem = 0;
 | 
			
		||||
    }
 | 
			
		||||
    return index.row();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user