X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/857eb08152e87404bcc02cfe96bf6925cda005aa..378d2bd3a8f9f3f3b48a705e7b3f59e52fa20df5:/src/generic/logg.cpp diff --git a/src/generic/logg.cpp b/src/generic/logg.cpp index 56f92fe68d..95cdee68f3 100644 --- a/src/generic/logg.cpp +++ b/src/generic/logg.cpp @@ -729,7 +729,7 @@ void wxLogDialog::OnListSelect(wxListEvent& event) // we can't just disable the control because this looks ugly under Windows // (wrong bg colour, no scrolling...), but we still want to disable // selecting items - it makes no sense here - m_listctrl->SetItemState(event.GetItem(), 0, wxLIST_STATE_SELECTED); + m_listctrl->SetItemState(event.GetIndex(), 0, wxLIST_STATE_SELECTED); } void wxLogDialog::OnOk(wxCommandEvent& WXUNUSED(event))