]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/logg.cpp
moved wxDash typedef to gdicmn.h
[wxWidgets.git] / src / generic / logg.cpp
index 56f92fe68d9151cdb43f3fc2b5fb5de9e205b340..95cdee68f374e20b858a45beae670a1637cc57de 100644 (file)
@@ -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))