Fix crash while right clicking on DocSwitcher's column bar

Fix #5479
This commit is contained in:
Don HO 2019-04-04 19:44:33 +02:00
parent aaa743ea3f
commit f0593f1a81
No known key found for this signature in database
GPG Key ID: 6C429F1D8D84F46E

View File

@ -121,6 +121,13 @@ INT_PTR CALLBACK VerticalFileSwitcher::run_dlgProc(UINT message, WPARAM wParam,
{
// Switch to the right document
LPNMITEMACTIVATE lpnmitem = (LPNMITEMACTIVATE) lParam;
if (lpnmitem->hdr.hwndFrom != _fileListView.getHSelf())
{
// Do nothing
return TRUE;
}
int nbItem = ListView_GetItemCount(_fileListView.getHSelf());
if (nbSelectedFiles() == 1)