From: Steve Brokenshire Date: Tue, 4 Aug 2015 21:29:59 +0000 (+0100) Subject: Fixed GetSelectedItem subroutine for getting the selected data value. X-Git-Tag: release-0.05~87 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=a1e30192bcca153e270c33c313b02bc8a1712ca8;p=xestiaab%2F.git Fixed GetSelectedItem subroutine for getting the selected data value. --- diff --git a/source/contacteditor/frmContactEditor.cpp b/source/contacteditor/frmContactEditor.cpp index 0ce77e1..34711b0 100644 --- a/source/contacteditor/frmContactEditor.cpp +++ b/source/contacteditor/frmContactEditor.cpp @@ -6621,6 +6621,8 @@ bool frmContactEditor::GetSelectedItem(wxListCtrl *ListCtrlPtr, wxLIST_NEXT_ALL, wxLIST_STATE_SELECTED); + *intSelectedData = (int)ListCtrlPtr->GetItemData(*longSelected); + if (*longSelected == -1){ return FALSE; }